test/unittest_schema.py
changeset 9675 8aabfefc8a81
parent 9674 96549de9dd70
child 9711 59616edc20d7
equal deleted inserted replaced
9674:96549de9dd70 9675:8aabfefc8a81
   247         self.assertEqual(constraint.expression, 'O final TRUE')
   247         self.assertEqual(constraint.expression, 'O final TRUE')
   248 
   248 
   249     def test_fulltext_container(self):
   249     def test_fulltext_container(self):
   250         schema = loader.load(config)
   250         schema = loader.load(config)
   251         self.assertIn('has_text', schema['CWUser'].subject_relations())
   251         self.assertIn('has_text', schema['CWUser'].subject_relations())
   252         self.assertFalse('has_text' in schema['EmailAddress'].subject_relations())
   252         self.assertNotIn('has_text', schema['EmailAddress'].subject_relations())
   253 
   253 
   254     def test_permission_settings(self):
   254     def test_permission_settings(self):
   255         schema = loader.load(config)
   255         schema = loader.load(config)
   256         aschema = schema['TrInfo'].rdef('comment')
   256         aschema = schema['TrInfo'].rdef('comment')
   257         self.assertEqual(aschema.get_groups('read'),
   257         self.assertEqual(aschema.get_groups('read'),