          self.assertEqual(result, None)
  
      def test_from_native_invalid_date(self):
          f = serializers.DateField()
  
          try:
              f.from_native('1984-13-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             f.from_native('1984-42-31')
 </s> add             f.from_native('1984-13-31') </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             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')
        """
        Make sure from_native() raises a ValidationError on passing an invalid date.
        """
          self.assertEqual(result, None)
  
      def test_from_native_invalid_date(self):
        """
        Make sure from_native() raises a ValidationError on passing an invalid date.
        """
          f = serializers.DateField()
  
          try:
              f.from_native('1984-13-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 keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py