  
      def test_from_native_invalid_time(self):
          f = serializers.TimeField()
  
          try:
              f.from_native('04:61:59')
          except validators.ValidationError as e:
 
</s> remove             f.from_native('12:69:12')
 </s> add             f.from_native('04:61:59') </s> remove             f.from_native('1984-42-31 04:31')
 </s> add             f.from_native('04:61:59') </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") </s> remove     @unittest.skipUnless(django.VERSION >= (1, 4), "django < 1.4 don't have microseconds in default settings")
    def test_from_native_invalid_datetime_for_django_gte_1_4(self):
 </s> add     def test_from_native_invalid_datetime(self):
        """
        Make sure from_native() raises a ValidationError on passing an invalid datetime.
        """
        """
        Make sure from_native() raises a ValidationError on passing an invalid time.
        """
  
      def test_from_native_invalid_time(self):
        """
        Make sure from_native() raises a ValidationError on passing an invalid time.
        """
          f = serializers.TimeField()
  
          try:
              f.from_native('04:61:59')
          except validators.ValidationError as e:
keep add keep keep keep keep keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py