server/test/unittest_migractions.py
changeset 3720 5376aaadd16b
parent 3589 a5432f99f2d9
parent 3689 deb13e88e037
child 4100 ca9e014012ef
--- a/server/test/unittest_migractions.py	Thu Oct 15 11:20:26 2009 +0200
+++ b/server/test/unittest_migractions.py	Mon Oct 19 15:16:41 2009 +0200
@@ -154,7 +154,7 @@
         self.assertEquals([str(rs) for rs in self.schema['Folder2'].object_relations()],
                           ['filed_under2', 'identity'])
         self.assertEquals(sorted(str(e) for e in self.schema['filed_under2'].subjects()),
-                          sorted(str(e) for e in self.schema.entities() if not e.is_final()))
+                          sorted(str(e) for e in self.schema.entities() if not e.final))
         self.assertEquals(self.schema['filed_under2'].objects(), ('Folder2',))
         eschema = self.schema.eschema('Folder2')
         for cstr in eschema.constraints('name'):
@@ -183,7 +183,7 @@
         self.schema.rebuild_infered_relations()
         self.failUnless('filed_under2' in self.schema)
         self.assertEquals(sorted(str(e) for e in self.schema['filed_under2'].subjects()),
-                          sorted(str(e) for e in self.schema.entities() if not e.is_final()))
+                          sorted(str(e) for e in self.schema.entities() if not e.final))
         self.assertEquals(self.schema['filed_under2'].objects(), ('Folder2',))
         self.mh.cmd_drop_relation_type('filed_under2')
         self.failIf('filed_under2' in self.schema)