  """
  from __future__ import unicode_literals
  import datetime
  
  import django
  from django.db import models
  from django.test import TestCase
  from django.core import validators
  from django.utils import unittest
  
 
</s> remove from django.utils import unittest
 </s> add  </s> remove from rest_framework.compat import parse_date, parse_datetime
 </s> add  </s> remove from rest_framework.compat import parse_time
 </s> add from rest_framework.settings import api_settings </s> remove         result = f.from_native(datetime.date(1984, 7, 31))
 </s> add         result_1 = f.from_native(datetime.date(1984, 7, 31))

        self.assertEqual(result_1, datetime.date(1984, 7, 31))

    def test_from_native_custom_format(self):
        """
        Make sure from_native() accepts custom input formats.
        """
        f = serializers.DateField(input_formats=['%Y -- %d'])
        result = f.from_native('1984 -- 31') </s> remove     def test_from_native(self):
 </s> add class TimeFieldTest(TestCase):
    """
    Tests for the TimeField from_native() and to_native() behavior
    """

    def test_from_native_string(self):
        """
        Make sure from_native() accepts default iso input formats.
        """
  """
  from __future__ import unicode_literals
  import datetime
  

  from django.db import models
  from django.test import TestCase
  from django.core import validators
  from django.utils import unittest
  
keep keep keep keep replace keep keep keep keep keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py