          self.assertEquals(serializer.errors, {'date': ['Date has wrong format. Use one of these formats instead: YYYY; YYYY -- MM']})
  
      def test_from_native(self):
          f = serializers.DateField()
          result = f.from_native('1984-07-31')
  
          self.assertEqual(datetime.date(1984, 7, 31), result)
  
      def test_from_native_datetime_date(self):
          """
 
</s> remove         serializer = DateObjectCustomFormatSerializer(data={'date': '1984 -- 07'})
        self.assertTrue(serializer.is_valid())

    def test_wrong_default_date_input_format(self):
        serializer = DateObjectSerializer(data={'date': 'something wrong'})
        self.assertFalse(serializer.is_valid())
        self.assertEquals(serializer.errors, {'date': ['Date has wrong format. Use one of these formats instead: '
                                                       'YYYY-MM-DD; MM/DD/YYYY; MM/DD/YY; [Jan through Dec] DD YYYY; '
                                                       '[Jan through Dec] DD, YYYY; DD [Jan through Dec] YYYY; '
                                                       'DD [Jan through Dec], YYYY; [January through December] DD YYYY; '
                                                       '[January through December] DD, YYYY; DD [January through December] YYYY; '
                                                       'DD [January through December], YYYY']})

    def test_wrong_custom_date_input_format(self):
        serializer = DateObjectCustomFormatSerializer(data={'date': '07/31/1984'})
        self.assertFalse(serializer.is_valid())
        self.assertEquals(serializer.errors, {'date': ['Date has wrong format. Use one of these formats instead: YYYY; YYYY -- MM']})

    def test_from_native(self):
 </s> add     def test_from_native_string(self):
        """
        Make sure from_native() accepts default iso input formats.
        """ </s> remove         self.assertEqual(datetime.date(1984, 7, 31), result)
 </s> add         self.assertEqual(datetime.date(1984, 7, 31), result_1) </s> remove         self.assertEqual(result, datetime.date(1984, 7, 31))
 </s> add         self.assertEqual(datetime.date(1984, 1, 31), result)

    def test_from_native_invalid_default_on_custom_format(self):
        """
        Make sure from_native() don't accept default formats if custom format is preset
        """
        f = serializers.DateField(input_formats=['%Y -- %d'])

        try:
            f.from_native('1984-07-31')
        except validators.ValidationError as e:
            self.assertEqual(e.messages, ["Date has wrong format. Use one of these formats instead: YYYY -- DD"])
        else:
            self.fail("ValidationError was not properly raised") </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         result = f.from_native('12:34:56')
 </s> add         result_1 = f.from_native('04:31')
        result_2 = f.from_native('04:31:59')
        result_3 = f.from_native('04:31:59.000200')
        result_1 = f.from_native('1984-07-31')
          self.assertEquals(serializer.errors, {'date': ['Date has wrong format. Use one of these formats instead: YYYY; YYYY -- MM']})
  
      def test_from_native(self):
          f = serializers.DateField()
        result_1 = f.from_native('1984-07-31')
  
          self.assertEqual(datetime.date(1984, 7, 31), result)
  
      def test_from_native_datetime_date(self):
          """
keep keep keep keep replace keep keep keep keep keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py