[web test] repair test broken by 0872ac2a1db0
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 02 Jul 2014 11:43:45 +0200
changeset 9828 ad0d461ae18b
parent 9827 c7ce035aede8
child 9829 e0e71b45bf8d
[web test] repair test broken by 0872ac2a1db0 after the above cset, during test instance's url is set before the creation of core entities (ie created at database initialization), hence they have now a valid cwuri.
web/test/unittest_views_xmlrss.py
--- a/web/test/unittest_views_xmlrss.py	Tue May 06 18:32:03 2014 +0200
+++ b/web/test/unittest_views_xmlrss.py	Wed Jul 02 11:43:45 2014 +0200
@@ -10,7 +10,7 @@
             self.assertMultiLineEqual(
                 req.user.view('xml'),
                 '''\
-<CWUser eid="6" cwuri="None6" cwsource="system">
+<CWUser eid="6" cwuri="http://testing.fr/cubicweb/6" cwsource="system">
   <login>admin</login>
   <upassword/>
   <firstname/>
@@ -21,10 +21,10 @@
   <tags role="object">
   </tags>
   <in_group role="subject">
-    <CWGroup eid="%(group_eid)s" cwuri="None%(group_eid)s"/>
+    <CWGroup eid="%(group_eid)s" cwuri="http://testing.fr/cubicweb/%(group_eid)s"/>
   </in_group>
   <in_state role="subject">
-    <State eid="%(state_eid)s" cwuri="None%(state_eid)s" name="activated"/>
+    <State eid="%(state_eid)s" cwuri="http://testing.fr/cubicweb/%(state_eid)s" name="activated"/>
   </in_state>
   <use_email role="subject">
   </use_email>