hooks/test/unittest_syncschema.py
branchstable
changeset 6410 2e7a7b0829ed
parent 6340 470d8e828fda
child 6412 370357e68837
equal deleted inserted replaced
6408:7674f674de40 6410:2e7a7b0829ed
   256                      'WHERE DEF relation_type RT, DEF from_entity E,'
   256                      'WHERE DEF relation_type RT, DEF from_entity E,'
   257                      'RT name "surname", E name "CWUser"')
   257                      'RT name "surname", E name "CWUser"')
   258         self.commit()
   258         self.commit()
   259         # should not be able anymore to add cwuser without surname
   259         # should not be able anymore to add cwuser without surname
   260         self.assertRaises(ValidationError, self.create_user, "toto")
   260         self.assertRaises(ValidationError, self.create_user, "toto")
       
   261         self.rollback()
   261         self.execute('SET DEF cardinality "?1" '
   262         self.execute('SET DEF cardinality "?1" '
   262                      'WHERE DEF relation_type RT, DEF from_entity E,'
   263                      'WHERE DEF relation_type RT, DEF from_entity E,'
   263                      'RT name "surname", E name "CWUser"')
   264                      'RT name "surname", E name "CWUser"')
   264         self.commit()
   265         self.commit()
   265 
   266