      def test_valid_default_date_time_input_formats_for_django_gte_1_4(self):
          serializer = DateTimeObjectSerializer(data={'date_time': '1984-07-31 04:31:59.123456'})
          self.assertTrue(serializer.is_valid())
  
          serializer = DateTimeObjectSerializer(data={'date_time': '07/31/1984 04:31:59.123456'})
          self.assertTrue(serializer.is_valid())
  
          serializer = DateTimeObjectSerializer(data={'date_time': '07/31/84 04:31:59.123456'})
          self.assertTrue(serializer.is_valid())
  
      def test_valid_custom_date_time_input_formats(self):
 
</s> remove         serializer = DateTimeObjectSerializer(data={'date_time': '07/31/84 04:31:59.123456'})
        self.assertTrue(serializer.is_valid())
 </s> add  </s> remove     @unittest.skipUnless(django.VERSION >= (1, 4), "django < 1.4 don't have microseconds in default settings")
    def test_valid_default_date_time_input_formats_for_django_gte_1_4(self):
        serializer = DateTimeObjectSerializer(data={'date_time': '1984-07-31 04:31:59.123456'})
        self.assertTrue(serializer.is_valid())
 </s> add         result_1 = f.to_native(datetime.date(1984, 7, 31)) </s> remove         serializer = DateTimeObjectSerializer(data={'date_time': '07/31/84'})
        self.assertTrue(serializer.is_valid())
 </s> add     def test_to_native_custom_format(self):
        """
        Make sure to_native() returns correct custom format.
        """
        f = serializers.DateField(output_format="%Y - %m.%d") </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     def test_valid_custom_date_time_input_formats(self):
        serializer = DateTimeObjectCustomFormatSerializer(data={'date_time': '1984'})
        self.assertTrue(serializer.is_valid())
 </s> add class DateTimeFieldTest(TestCase):
    """
    Tests for the DateTimeField from_native() and to_native() behavior
    """
        self.assertEqual('1984 - 07.31', result_1)
      def test_valid_default_date_time_input_formats_for_django_gte_1_4(self):
          serializer = DateTimeObjectSerializer(data={'date_time': '1984-07-31 04:31:59.123456'})
          self.assertTrue(serializer.is_valid())
  
        self.assertEqual('1984 - 07.31', result_1)
        self.assertEqual('1984 - 07.31', result_1)
  
          serializer = DateTimeObjectSerializer(data={'date_time': '07/31/84 04:31:59.123456'})
          self.assertTrue(serializer.is_valid())
  
      def test_valid_custom_date_time_input_formats(self):
keep keep keep keep replace replace keep keep keep keep keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py