diff -r 5346d9f3d5ec -r aa25d6b244c8 server/test/unittest_hooks.py --- 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]