server/test/unittest_hooks.py
changeset 2456 aa25d6b244c8
parent 2454 3648b718a0d3
child 2591 287e43c6ed81
--- a/server/test/unittest_hooks.py	Thu Jul 23 15:17:11 2009 +0200
+++ b/server/test/unittest_hooks.py	Thu Jul 23 15:28:41 2009 +0200
@@ -618,6 +618,11 @@
         self.failUnless(cu.execute("INSERT Note X: X type 'a', X in_state S WHERE S name 'todo'"))
         cnx.commit()
 
+    def test_metadata_cwuri(self):
+        eid = self.execute('INSERT Note X')[0][0]
+        cwuri = self.execute('Any U WHERE X eid %s, X cwuri U' % eid)[0][0]
+        self.assertEquals(cwuri, self.repo.config['base-url'] + 'eid/%s' % eid)
+
     def test_metadata_creation_modification_date(self):
         _now = datetime.now()
         eid = self.execute('INSERT Note X')[0][0]