aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_fields.py
diff options
context:
space:
mode:
authorTom Christie2014-09-22 16:52:57 +0100
committerTom Christie2014-09-22 16:52:57 +0100
commit5a95baf2a2258fb5297062ac18582129c05fb320 (patch)
treedae81912497c57de52a094b077b9be7bdb5f3d0f /tests/test_fields.py
parentb5454dd02290130a7fb0a0e375f3efecc58edc6d (diff)
downloaddjango-rest-framework-5a95baf2a2258fb5297062ac18582129c05fb320.tar.bz2
Tests & tweaks for ChoiceField
Diffstat (limited to 'tests/test_fields.py')
-rw-r--r--tests/test_fields.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_fields.py b/tests/test_fields.py
index 3343123f..3cfc1b88 100644
--- a/tests/test_fields.py
+++ b/tests/test_fields.py
@@ -577,7 +577,9 @@ class TestMultipleChoiceField(FieldValues):
'abc': ['Expected a list of items but got type `str`'],
('aircon', 'incorrect'): ['`incorrect` is not a valid choice.']
}
- outputs = {}
+ outputs = [
+ (['aircon', 'manual'], set(['aircon', 'manual']))
+ ]
field = fields.MultipleChoiceField(
choices=[
('aircon', 'AirCon'),