Check object in tests

This commit is contained in:
Piotr Jakimiak 2014-09-05 11:27:36 +02:00
parent d9633c6817
commit e39422e35f

View File

@ -1019,7 +1019,7 @@ class ModelCharField(TestCase):
serializer = CharFieldSerializer(data={'char': None}) serializer = CharFieldSerializer(data={'char': None})
self.assertTrue(serializer.fields['char'].allow_none) self.assertTrue(serializer.fields['char'].allow_none)
self.assertTrue(serializer.is_valid()) self.assertTrue(serializer.is_valid())
self.assertIsNone(serializer.data['char']) self.assertIsNone(serializer.object.char)
class SerializerMethodFieldTest(TestCase): class SerializerMethodFieldTest(TestCase):