mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 07:57:55 +03:00 
			
		
		
		
	Drop u'' prefix for python 3.x compatibility
This commit is contained in:
		
							parent
							
								
									5325890821
								
							
						
					
					
						commit
						5829eb7a5b
					
				|  | @ -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): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user