mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 10:03:57 +03:00
Fixed test
This commit is contained in:
parent
2e18fbe373
commit
b6d6feaa02
|
@ -494,7 +494,7 @@ class CustomValidationTests(TestCase):
|
||||||
}
|
}
|
||||||
serializer = self.CommentSerializerWithFieldValidator(data=wrong_data)
|
serializer = self.CommentSerializerWithFieldValidator(data=wrong_data)
|
||||||
self.assertFalse(serializer.is_valid())
|
self.assertFalse(serializer.is_valid())
|
||||||
self.assertEqual(serializer.errors, {'email': ['Enter a valid e-mail address.']})
|
self.assertEqual(serializer.errors, {'email': ['Enter a valid email address.']})
|
||||||
|
|
||||||
|
|
||||||
class PositiveIntegerAsChoiceTests(TestCase):
|
class PositiveIntegerAsChoiceTests(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user