                  file_field = FileField(max_length=100)
                  time_field = TimeField()
                  url_field = URLField(max_length=100)
                  custom_field = ModelField(model_field=<tests.test_model_serializer.CustomField: custom_field>)
                  file_path_field = FilePathField(path='/tmp/')
          """)
  
          self.assertEqual(repr(TestSerializer()), expected)
  
      def test_field_options(self):
          class TestSerializer(serializers.ModelSerializer):
 
</s> remove     file_path_field = models.FilePathField(path='/tmp/')
 </s> add     file_path_field = models.FilePathField(path=tempfile.gettempdir())
                file_path_field = FilePathField(path=%r)
        """ % tempfile.gettempdir())
                  file_field = FileField(max_length=100)
                  time_field = TimeField()
                  url_field = URLField(max_length=100)
                  custom_field = ModelField(model_field=<tests.test_model_serializer.CustomField: custom_field>)
                file_path_field = FilePathField(path=%r)
        """ % tempfile.gettempdir())
                file_path_field = FilePathField(path=%r)
        """ % tempfile.gettempdir())
  
          self.assertEqual(repr(TestSerializer()), expected)
  
      def test_field_options(self):
          class TestSerializer(serializers.ModelSerializer):
keep keep keep keep replace replace keep keep keep keep keep
 Changed hardcoded /tmp/ directory to autodetect from system (#7292) 
tests/test_model_serializer.py