hooks/test/unittest_syncschema.py
branchstable
changeset 7255 cbd7b2f49dc9
parent 7244 a918f76441ce
child 7398 26695dd703d8
--- a/hooks/test/unittest_syncschema.py	Thu Apr 21 17:25:32 2011 +0200
+++ b/hooks/test/unittest_syncschema.py	Wed Apr 27 09:55:17 2011 +0200
@@ -251,7 +251,8 @@
                      'RT name "surname", E name "CWUser"')
         self.commit()
         # should not be able anymore to add cwuser without surname
-        self.assertRaises(ValidationError, self.create_user, "toto")
+        req = self.request()
+        self.assertRaises(ValidationError, self.create_user, req, "toto")
         self.rollback()
         self.execute('SET DEF cardinality "?1" '
                      'WHERE DEF relation_type RT, DEF from_entity E,'