server/test/unittest_migractions.py
branchstable
changeset 3689 deb13e88e037
parent 3587 5b3725f315fc
child 3720 5376aaadd16b
--- a/server/test/unittest_migractions.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/server/test/unittest_migractions.py	Thu Oct 15 20:29:21 2009 +0200
@@ -147,7 +147,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'):
@@ -176,7 +176,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)