          else:
              self.fail("ValidationError was not properly raised")
  
  
          try:
              f.from_native('1984 -- 31')
          except validators.ValidationError as e:
              self.assertEqual(e.messages, ["Date has wrong format. Use one of these formats instead: YYYY-MM-DD"])
 
</s> remove class DateTimeFieldTest(TestCase):
    def test_valid_default_date_time_input_formats(self):
        serializer = DateTimeObjectSerializer(data={'date_time': '1984-07-31 04:31:59'})
        self.assertTrue(serializer.is_valid())

        serializer = DateTimeObjectSerializer(data={'date_time': '1984-07-31 04:31'})
        self.assertTrue(serializer.is_valid())

        serializer = DateTimeObjectSerializer(data={'date_time': '1984-07-31'})
        self.assertTrue(serializer.is_valid())

        serializer = DateTimeObjectSerializer(data={'date_time': '07/31/1984 04:31:59'})
        self.assertTrue(serializer.is_valid())

        serializer = DateTimeObjectSerializer(data={'date_time': '07/31/1984 04:31'})
        self.assertTrue(serializer.is_valid())
 </s> add         try:
            f.from_native('1984 -- 31')
        except validators.ValidationError as e:
            self.assertEqual(e.messages, ["Date has wrong format. Use one of these formats instead: YYYY-MM-DD"])
        else:
            self.fail("ValidationError was not properly raised") </s> remove             self.assertEqual(e.messages, ["Time has wrong format. Use one of these formats instead: HH:MM:SS; HH:MM"])
 </s> add             self.assertEqual(e.messages, ["Time has wrong format. Use one of these formats instead: "
                                          "HH:MM; HH:MM:SS; HH:MM:SS.uuuuuu"]) </s> remove             f.from_native('12:69:12')
 </s> add             f.from_native('04:61:59') </s> remove             self.assertEqual(e.messages, ['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'])
 </s> add             self.assertEqual(e.messages, ["Date has wrong format. Use one of these formats instead: YYYY-MM-DD"]) </s> remove         self.assertEqual(result, datetime.time(12, 34, 56))
 </s> add         try:
            f.from_native('04:31:59')
        except validators.ValidationError as e:
            self.assertEqual(e.messages, ["Time has wrong format. Use one of these formats instead: HH -- MM"])
        else:
            self.fail("ValidationError was not properly raised")
    def test_from_native_invalid_format(self):
        """
        Make sure from_native() raises a ValidationError on passing an invalid format.
        """
        f = serializers.DateField()
          else:
              self.fail("ValidationError was not properly raised")
  
    def test_from_native_invalid_format(self):
        """
        Make sure from_native() raises a ValidationError on passing an invalid format.
        """
        f = serializers.DateField()
  
          try:
              f.from_native('1984 -- 31')
          except validators.ValidationError as e:
              self.assertEqual(e.messages, ["Date has wrong format. Use one of these formats instead: YYYY-MM-DD"])
keep keep add keep keep keep keep keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py