          result = f.from_native('1984-07-31 04:31')
  
          self.assertEqual(datetime.datetime(1984, 7, 31, 4, 31), result)
  
      def test_from_native_datetime_datetime(self):
          """
          Make sure from_native() accepts a datetime.date instance.
          """
          f = serializers.DateTimeField()
          result = f.from_native(datetime.datetime(1984, 7, 31))
 
</s> remove         self.assertEqual(datetime.datetime(1984, 7, 31, 4, 31), result)
 </s> add         self.assertEqual(datetime.datetime(1984, 1, 1, 4, 59), result) </s> remove         Make sure from_native() accepts a datetime.date instance.
 </s> add         Make sure from_native() don't accept default formats if custom format is preset </s> remove         f = serializers.DateTimeField()
        result = f.from_native(datetime.datetime(1984, 7, 31))
 </s> add         f = serializers.DateTimeField(input_formats=['%Y -- %H:%M']) </s> remove     def test_from_native(self):
        f = serializers.DateTimeField()
        result = f.from_native('1984-07-31 04:31')
 </s> add     def test_from_native_custom_format(self):
        """
        Make sure from_native() accepts custom input formats.
        """
        f = serializers.DateTimeField(input_formats=['%Y -- %H:%M'])
        result = f.from_native('1984 -- 04:59') </s> remove         self.assertEqual(datetime.date(1984, 7, 31), result)
 </s> add         self.assertEqual(datetime.date(1984, 7, 31), result_1)
    def test_from_native_invalid_default_on_custom_format(self):
          result = f.from_native('1984-07-31 04:31')
  
          self.assertEqual(datetime.datetime(1984, 7, 31, 4, 31), result)
  
    def test_from_native_invalid_default_on_custom_format(self):
          """
          Make sure from_native() accepts a datetime.date instance.
          """
          f = serializers.DateTimeField()
          result = f.from_native(datetime.datetime(1984, 7, 31))
keep keep keep keep replace keep keep keep keep keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py