equal
deleted
inserted
replaced
140 with self.base_parser(cnx) as parser: |
140 with self.base_parser(cnx) as parser: |
141 value = parser.retrieve_url('a string') |
141 value = parser.retrieve_url('a string') |
142 self.assertEqual(200, value.getcode()) |
142 self.assertEqual(200, value.getcode()) |
143 self.assertEqual('a string', value.geturl()) |
143 self.assertEqual('a string', value.geturl()) |
144 |
144 |
|
145 def test_update_url(self): |
|
146 dfsource = self.repo.sources_by_uri[u'รด myfeed'] |
|
147 with self.admin_access.repo_cnx() as cnx: |
|
148 cnx.entity_from_eid(dfsource.eid).cw_set(url=u"http://pouet.com\nhttp://pouet.org") |
|
149 self.assertEqual(dfsource.urls, [u'ignored']) |
|
150 cnx.commit() |
|
151 self.assertEqual(dfsource.urls, [u"http://pouet.com", u"http://pouet.org"]) |
|
152 |
145 |
153 |
146 class DataFeedConfigTC(CubicWebTC): |
154 class DataFeedConfigTC(CubicWebTC): |
147 |
155 |
148 def test_use_cwuri_as_url_override(self): |
156 def test_use_cwuri_as_url_override(self): |
149 with self.admin_access.client_cnx() as cnx: |
157 with self.admin_access.client_cnx() as cnx: |