[test] update cwuri test stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Feb 2011 18:47:29 +0100
branchstable
changeset 6965 343c79c3f04a
parent 6955 a6c32edabc8d
child 6969 c527de85ea61
child 6976 1e0cd8cfa987
[test] update cwuri test
hooks/test/unittest_hooks.py
--- a/hooks/test/unittest_hooks.py	Wed Feb 09 18:05:39 2011 +0100
+++ b/hooks/test/unittest_hooks.py	Wed Feb 09 18:47:29 2011 +0100
@@ -150,7 +150,7 @@
 
     def test_metadata_cwuri(self):
         entity = self.request().create_entity('Workflow', name=u'wf1')
-        self.assertEqual(entity.cwuri, self.repo.config['base-url'] + 'eid/%s' % entity.eid)
+        self.assertEqual(entity.cwuri, self.repo.config['base-url'] + str(entity.eid))
 
     def test_metadata_creation_modification_date(self):
         _now = datetime.now()