[schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Jan 2011 13:07:10 +0100
branchstable
changeset 6873 2db631a3f205
parent 6872 23554151486c
child 6874 611aa2074a5b
[schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
test/data/lowered_etype.py
test/data/uppered_rtype.py
test/unittest_schema.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/data/lowered_etype.py	Fri Jan 21 13:07:10 2011 +0100
@@ -0,0 +1,5 @@
+
+from yams.buildobjs import EntityType
+
+class my_etype(EntityType):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/data/uppered_rtype.py	Fri Jan 21 13:07:10 2011 +0100
@@ -0,0 +1,6 @@
+
+from yams.buildobjs import RelationDefinition
+
+class ARelation(RelationDefinition):
+    subject = 'CWUser'
+    object = 'CWGroup'
--- a/test/unittest_schema.py	Fri Jan 21 11:13:40 2011 +0100
+++ b/test/unittest_schema.py	Fri Jan 21 13:07:10 2011 +0100
@@ -109,15 +109,6 @@
         self.failIf(issubclass(RQLUniqueConstraint, RQLConstraint))
         self.failUnless(issubclass(RQLConstraint, RQLVocabularyConstraint))
 
-    def test_normalize(self):
-        """test that entities, relations and attributes name are normalized
-        """
-        self.assertEqual(esociete.type, 'Societe')
-        self.assertEqual(schema.has_relation('test'), 1)
-        self.assertEqual(eperson.subjrels['test'].type, 'test')
-        self.assertEqual(schema.has_relation('concerne'), 1)
-        self.assertEqual(schema.rschema('concerne').type, 'concerne')
-
     def test_entity_perms(self):
         self.assertEqual(eperson.get_groups('read'), set(('managers', 'users', 'guests')))
         self.assertEqual(eperson.get_groups('update'), set(('managers', 'owners',)))