Updated validation error messages

refs hmarr/mongoengine#539
This commit is contained in:
Ross Lawley
2012-07-19 15:04:12 +01:00
parent d83e67c121
commit 1b17fb0ae7
4 changed files with 21 additions and 19 deletions

View File

@@ -2122,7 +2122,7 @@ class FieldTest(unittest.TestCase):
self.assertTrue(1 in error_dict['comments'])
self.assertTrue('content' in error_dict['comments'][1])
self.assertEquals(error_dict['comments'][1]['content'],
u'Field is required ("content")')
'Field is required')
post.comments[1].content = 'here we go'
post.validate()