# HG changeset patch # User Sylvain Thénault # Date 1295611630 -3600 # Node ID 2db631a3f205418024861c1a7d42db04a9309bc0 # Parent 23554151486c1cd8257178efc1644b291dd9af8f [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test) diff -r 23554151486c -r 2db631a3f205 test/data/lowered_etype.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 diff -r 23554151486c -r 2db631a3f205 test/data/uppered_rtype.py --- /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' diff -r 23554151486c -r 2db631a3f205 test/unittest_schema.py --- 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',)))