mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
Add assertion in test
This commit is contained in:
parent
1b4c078db2
commit
8fa82822a0
|
@ -351,7 +351,7 @@ class ValidationTests(TestCase):
|
||||||
serializer = CommentSerializer(data=data)
|
serializer = CommentSerializer(data=data)
|
||||||
self.assertEquals(serializer.is_valid(), False)
|
self.assertEquals(serializer.is_valid(), False)
|
||||||
|
|
||||||
# TODO: check validation error value
|
self.assertIn('created', serializer.errors)
|
||||||
|
|
||||||
|
|
||||||
class CustomValidationTests(TestCase):
|
class CustomValidationTests(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user