Failing test case for #2894

This commit is contained in:
Xavier Ordoquy 2015-06-01 16:04:05 +01:00
parent a0f66ffc69
commit 989c08109b

View File

@ -1,6 +1,7 @@
from decimal import Decimal
from django.utils import timezone
from rest_framework import serializers
import rest_framework
import datetime
import django
import pytest
@ -1017,6 +1018,12 @@ class TestMultipleChoiceField(FieldValues):
]
)
def test_against_partial_updates(self):
# serializer = self.Serializer(data=MockHTMLDict())
from django.http import QueryDict
field = serializers.MultipleChoiceField(choices=(('a', 'a'), ('b', 'b')))
assert field.get_value(QueryDict({})) == rest_framework.fields.empty
# File serializers...