equal
deleted
inserted
replaced
616 cnx = self.login('toto') |
616 cnx = self.login('toto') |
617 cu = cnx.cursor() |
617 cu = cnx.cursor() |
618 self.failUnless(cu.execute("INSERT Note X: X type 'a', X in_state S WHERE S name 'todo'")) |
618 self.failUnless(cu.execute("INSERT Note X: X type 'a', X in_state S WHERE S name 'todo'")) |
619 cnx.commit() |
619 cnx.commit() |
620 |
620 |
|
621 def test_metadata_cwuri(self): |
|
622 eid = self.execute('INSERT Note X')[0][0] |
|
623 cwuri = self.execute('Any U WHERE X eid %s, X cwuri U' % eid)[0][0] |
|
624 self.assertEquals(cwuri, self.repo.config['base-url'] + 'eid/%s' % eid) |
|
625 |
621 def test_metadata_creation_modification_date(self): |
626 def test_metadata_creation_modification_date(self): |
622 _now = datetime.now() |
627 _now = datetime.now() |
623 eid = self.execute('INSERT Note X')[0][0] |
628 eid = self.execute('INSERT Note X')[0][0] |
624 creation_date, modification_date = self.execute('Any CD, MD WHERE X eid %s, ' |
629 creation_date, modification_date = self.execute('Any CD, MD WHERE X eid %s, ' |
625 'X creation_date CD, ' |
630 'X creation_date CD, ' |