# HG changeset patch # User Sylvain Thénault # Date 1288021376 -7200 # Node ID 404aff81236c950e911d870e33b12ea0310079e7 # Parent 6bbfc628555ba3a3799fc6324b82c0b9e7c6744e [cwprops] validation error message now include key value diff -r 6bbfc628555b -r 404aff81236c 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,