From 42dca62e7733bb095435b804061fbffe89f9de7a Mon Sep 17 00:00:00 2001 From: Anton-Shutik Date: Wed, 1 Jul 2015 15:16:57 +0300 Subject: [PATCH] Fixed MappingField tests --- tests/test_fields.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/test_fields.py b/tests/test_fields.py index f4ef749aa..c13dc4c61 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -1132,21 +1132,21 @@ class TestMappingFieldWithIntKeys(FieldValues): Valid and invalid values for `MappingField`. """ valid_inputs = { - 1: 'one', - 2: 'two', - 'three': 3, - 'four': 4 - } - invalid_inputs = { - 5: ['"5" not found in "mapping" dict'], - 'abc': ['"abc" not found in "mapping" dict'] - } - outputs = { 'one': 1, 'two': 2, 3: 'three', 4: 'four' } + invalid_inputs = { + 5: ['"5" not found in "mapping" values'], + 'abc': ['"abc" not found in "mapping" values'] + } + outputs = { + 1: 'one', + 2: 'two', + 'three': 3, + 'four': 4 + } field = serializers.MappingField( mapping={ 1: 'one',