Commit 5829eb7a by Mathieu Pillard

Drop u'' prefix for python 3.x compatibility

parent 53258908
...@@ -709,7 +709,7 @@ class ChoiceFieldTests(TestCase): ...@@ -709,7 +709,7 @@ class ChoiceFieldTests(TestCase):
def test_invalid_choice_model(self): def test_invalid_choice_model(self):
s = ChoiceFieldModelSerializer(data={'choice' : 'wrong_value'}) s = ChoiceFieldModelSerializer(data={'choice' : 'wrong_value'})
self.assertFalse(s.is_valid()) 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'], '') self.assertEqual(s.data['choice'], '')
def test_empty_choice_model(self): def test_empty_choice_model(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment