  
      def test_from_native_empty(self):
          f = serializers.DateTimeField()
          result = f.from_native('')
  
          self.assertEqual(result, None)
  
      def test_from_native_invalid_datetime(self):
 
</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.
        """ </s> remove         self.assertEqual(result, datetime.datetime(1984, 7, 31))
 </s> add         try:
            f.from_native('1984-07-31 04:31:59')
        except validators.ValidationError as e:
            self.assertEqual(e.messages, ["Datetime has wrong format. Use one of these formats instead: YYYY -- HH:MM"])
        else:
            self.fail("ValidationError was not properly raised") </s> remove         f = serializers.DateTimeField()
        result = f.from_native(datetime.datetime(1984, 7, 31))
 </s> add         f = serializers.DateTimeField(input_formats=['%Y -- %H:%M'])
        """
        Make sure from_native() returns None on empty param.
        """
  
      def test_from_native_empty(self):
        """
        Make sure from_native() returns None on empty param.
        """
          f = serializers.DateTimeField()
          result = f.from_native('')
  
          self.assertEqual(result, None)
  
      def test_from_native_invalid_datetime(self):
keep add keep keep keep keep keep keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py