      def test_empty_choice_model(self):
          """
          Test that the 'empty' value is correctly passed and used depending on the 'null' property on the model field.
          """
          s = ChoiceFieldModelSerializer(data={'choice' : ''})
          self.assertTrue(s.is_valid())
          self.assertEqual(s.data['choice'], '')
  
          s = ChoiceFieldModelWithNullSerializer(data={'choice' : ''})
          self.assertTrue(s.is_valid())
 
</s> remove         Test that the 'empty' value is correctly passed and used depending on the 'null' property on the model field.
 </s> add         Test that the 'empty' value is correctly passed and used depending on
        the 'null' property on the model field. </s> remove         s = ChoiceFieldModelWithNullSerializer(data={'choice' : ''})
 </s> add         s = ChoiceFieldModelWithNullSerializer(data={'choice': ''}) </s> remove         s = ChoiceFieldModelSerializer(data={'choice' : 'wrong_value'})
 </s> add         s = ChoiceFieldModelSerializer(data={'choice': 'wrong_value'}) </s> remove         data['choices'] = [{'value': v, 'name': n} for v, n in self.choices]
 </s> add         data['choices'] = [{'value': v, 'display_name': n} for v, n in self.choices]
        s = ChoiceFieldModelSerializer(data={'choice': ''})
      def test_empty_choice_model(self):
          """
          Test that the 'empty' value is correctly passed and used depending on the 'null' property on the model field.
          """
        s = ChoiceFieldModelSerializer(data={'choice': ''})
          self.assertTrue(s.is_valid())
          self.assertEqual(s.data['choice'], '')
  
          s = ChoiceFieldModelWithNullSerializer(data={'choice' : ''})
          self.assertTrue(s.is_valid())
keep keep keep keep replace keep keep keep keep keep
 Add unittests for ChoiceField metadata.

Rename 'name' to 'display_name'. 
rest_framework/tests/test_fields.py