From e39422e35fa81c79c149570e3d7e5cf9e0a0909b Mon Sep 17 00:00:00 2001 From: Piotr Jakimiak Date: Fri, 5 Sep 2014 11:27:36 +0200 Subject: [PATCH] Check object in tests --- tests/test_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_fields.py b/tests/test_fields.py index b8c9954ea..20d5a97a1 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -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):