server/test/unittest_datafeed.py
changeset 7631 4ac19f288149
parent 7552 82dde8276a5b
child 7650 278fe9c1f3ad
--- a/server/test/unittest_datafeed.py	Thu Jul 07 16:22:08 2011 +0200
+++ b/server/test/unittest_datafeed.py	Thu Jul 07 17:06:50 2011 +0200
@@ -64,10 +64,10 @@
             self.assertEqual(entity.cw_source[0].name, 'myfeed')
             self.assertEqual(entity.cw_metainformation(),
                              {'type': 'Card',
-                              'source': {'uri': 'myfeed', 'type': 'datafeed'},
+                              'source': {'uri': 'myfeed', 'type': 'datafeed', 'use-cwuri-as-url': True},
                               'extid': 'http://www.cubicweb.org/'}
                              )
-            self.assertEqual(entity.absolute_url(), 'extid': 'http://www.cubicweb.org/')
+            self.assertEqual(entity.absolute_url(), 'http://www.cubicweb.org/')
             # test repo cache keys
             self.assertEqual(self.repo._type_source_cache[entity.eid],
                              ('Card', 'system', 'http://www.cubicweb.org/', 'myfeed'))