[fix]pass test case and fix field type error

This commit is contained in:
Bo.Yi
2017-07-06 16:07:51 +08:00
parent e6a30f899c
commit 820b5cbb86
2 changed files with 6 additions and 4 deletions

View File

@@ -957,10 +957,10 @@ class FieldTest(MongoDBTestCase):
post.validate()
post.access_list = 'a,b'
self.assertRaises(ValidationError, post.validate())
self.assertRaises(ValidationError, post.validate)
post.access_list = ['c', 'd']
self.assertRaises(ValidationError, post.validate())
self.assertRaises(ValidationError, post.validate)
post.access_list = ['a', 'b']
post.validate()