Fix test for py32-django18.

This commit is contained in:
Vadim 2016-06-29 10:21:28 +03:00
parent c0f4dfd8f3
commit c752e9618f

View File

@ -374,7 +374,7 @@ class TestSerializerPartialUsage:
assert not serializer.is_valid()
assert serializer.validated_data == []
assert len(serializer.errors) == 1
assert serializer.errors['non_field_errors'] == [u'This list may not be empty.']
assert serializer.errors['non_field_errors'][0] == 'This list may not be empty.'
def test_update_allow_empty_false(self):
class ListSerializer(serializers.Serializer):