aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/test_fields.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/tests/test_fields.py')
-rw-r--r--rest_framework/tests/test_fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/test_fields.py b/rest_framework/tests/test_fields.py
index 333476ba..ab2cceac 100644
--- a/rest_framework/tests/test_fields.py
+++ b/rest_framework/tests/test_fields.py
@@ -709,7 +709,7 @@ class ChoiceFieldTests(TestCase):
def test_invalid_choice_model(self):
s = ChoiceFieldModelSerializer(data={'choice' : 'wrong_value'})
self.assertFalse(s.is_valid())
- self.assertEqual(s.errors, {'choice': [u'Select a valid choice. wrong_value is not one of the available choices.']})
+ self.assertEqual(s.errors, {'choice': ['Select a valid choice. wrong_value is not one of the available choices.']})
self.assertEqual(s.data['choice'], '')
def test_empty_choice_model(self):