[cwprops] validation error message now include key value
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 25 Oct 2010 17:42:56 +0200
changeset 6638 404aff81236c
parent 6637 6bbfc628555b
child 6639 90ae7eb3460f
[cwprops] validation error message now include key value
hooks/test/unittest_hooks.py
--- a/hooks/test/unittest_hooks.py	Mon Oct 25 17:15:55 2010 +0200
+++ b/hooks/test/unittest_hooks.py	Mon Oct 25 17:42:56 2010 +0200
@@ -229,10 +229,10 @@
     def test_unexistant_eproperty(self):
         ex = self.assertRaises(ValidationError,
                           self.execute, 'INSERT CWProperty X: X pkey "bla.bla", X value "hop", X for_user U')
-        self.assertEqual(ex.errors, {'pkey-subject': 'unknown property key'})
+        self.assertEqual(ex.errors, {'pkey-subject': 'unknown property key bla.bla'})
         ex = self.assertRaises(ValidationError,
                           self.execute, 'INSERT CWProperty X: X pkey "bla.bla", X value "hop"')
-        self.assertEqual(ex.errors, {'pkey-subject': 'unknown property key'})
+        self.assertEqual(ex.errors, {'pkey-subject': 'unknown property key bla.bla'})
 
     def test_site_wide_eproperty(self):
         ex = self.assertRaises(ValidationError,