From 989c08109bf0913b43a16ec7f951bbb6f6f6bef6 Mon Sep 17 00:00:00 2001 From: Xavier Ordoquy Date: Mon, 1 Jun 2015 16:04:05 +0100 Subject: [PATCH] Failing test case for #2894 --- tests/test_fields.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_fields.py b/tests/test_fields.py index 568e8d5e7..c4c2eeeca 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -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...