[fix]pass test case and fix field type error
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user