mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
Fixed test.
This commit is contained in:
parent
27be31bd8a
commit
4e6a21344f
|
@ -1237,8 +1237,8 @@ class BlankFieldTests(TestCase):
|
|||
serializer = self.model_serializer_class(data={'title': None})
|
||||
self.assertEqual(serializer.is_valid(), True)
|
||||
serializer.save()
|
||||
self.assertTrue(serializer.object.pk is not None)
|
||||
self.assertEqual(serializer.object.title, 'title')
|
||||
self.assertIsNot(serializer.object.pk, None)
|
||||
self.assertEqual(serializer.object.title, '')
|
||||
|
||||
def test_create_not_blank_field(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user