  
          ChildSerializer().fields
  
  
  @pytest.mark.skipif(django.VERSION < (1, 8),
                      reason='DurationField is only available for django1.8+')
  class TestDurationFieldMapping(TestCase):
      def test_duration_field(self):
 
</s>
    def test_choices_with_nonstandard_args(self):
        class ExampleSerializer(serializers.ModelSerializer):
            class Meta:
                model = MappingForChoicesWithNonStandardArgs

        ExampleSerializer()

  
          ChildSerializer().fields
  
    def test_choices_with_nonstandard_args(self):
        class ExampleSerializer(serializers.ModelSerializer):
            class Meta:
                model = MappingForChoicesWithNonStandardArgs

        ExampleSerializer()

  
  @pytest.mark.skipif(django.VERSION < (1, 8),
                      reason='DurationField is only available for django1.8+')
  class TestDurationFieldMapping(TestCase):
      def test_duration_field(self):
keep keep add keep keep keep keep keep
 Fix for ModelSerializer ChoiceField with nonstandard args. Closes #3126.
tests/test_model_serializer.py