Failing test case for #514

Serializer errors are: {'title': [u'This field is required.']}
This commit is contained in:
Yuri Prezument 2012-12-17 16:49:45 +02:00
parent 6f6aeadf5f
commit 967f22e7d1

View File

@ -704,6 +704,10 @@ class BlankFieldTests(TestCase):
serializer = self.not_blank_model_serializer_class(data=self.data)
self.assertEquals(serializer.is_valid(), False)
def test_create_model_null_field(self):
serializer = self.model_serializer_class(data={})
self.assertEquals(serializer.is_valid(), True)
#test for issue #460
class SerializerPickleTests(TestCase):