mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Check object in tests
This commit is contained in:
parent
d9633c6817
commit
e39422e35f
|
@ -1019,7 +1019,7 @@ class ModelCharField(TestCase):
|
|||
serializer = CharFieldSerializer(data={'char': None})
|
||||
self.assertTrue(serializer.fields['char'].allow_none)
|
||||
self.assertTrue(serializer.is_valid())
|
||||
self.assertIsNone(serializer.data['char'])
|
||||
self.assertIsNone(serializer.object.char)
|
||||
|
||||
|
||||
class SerializerMethodFieldTest(TestCase):
|
||||
|
|
Loading…
Reference in New Issue
Block a user