          """
          PK fields other than AutoField fields should not be read_only by default.
          """
          serializer = CharPrimaryKeyModelSerializer()
          self.assertEqual(serializer.fields['id'].read_only, False)
  
  
  class DateFieldTest(TestCase):
      def test_valid_default_date_input_formats(self):
          serializer = DateObjectSerializer(data={'date': '1984-07-31'})
 
</s> remove     def test_valid_default_date_input_formats(self):
        serializer = DateObjectSerializer(data={'date': '1984-07-31'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': '07/31/1984'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': '07/31/84'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': 'Jul 31 1984'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': 'Jul 31, 1984'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': '31 Jul 1984'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': '31 Jul 1984'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': 'July 31 1984'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': 'July 31, 1984'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': '31 July 1984'})
        self.assertTrue(serializer.is_valid())

        serializer = DateObjectSerializer(data={'date': '31 July, 1984'})
        self.assertTrue(serializer.is_valid())

    def test_valid_custom_date_input_formats(self):
        serializer = DateObjectCustomFormatSerializer(data={'date': '1984'})
        self.assertTrue(serializer.is_valid())
 </s> add     """
    Tests for the DateFieldTest from_native() and to_native() behavior
    """ </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         serializer = DateTimeObjectSerializer(data={'date_time': '07/31/1984'})
        self.assertTrue(serializer.is_valid())
 </s> add     def test_to_native(self):
        """
        Make sure to_native() returns isoformat as default.
        """
        f = serializers.DateField() </s> remove class TimeFieldTest(TestCase):
    def test_valid_default_time_input_formats(self):
        serializer = TimeObjectSerializer(data={'time': '04:31'})
        self.assertTrue(serializer.is_valid())
 </s> add         result_1 = f.to_native(datetime.datetime(1984, 7, 31))
        result_2 = f.to_native(datetime.datetime(1984, 7, 31, 4, 31))
        result_3 = f.to_native(datetime.datetime(1984, 7, 31, 4, 31, 59))
        result_4 = f.to_native(datetime.datetime(1984, 7, 31, 4, 31, 59, 200)) </s> remove         serializer = DateObjectCustomFormatSerializer(data={'date': '1984 -- 07'})
        self.assertTrue(serializer.is_valid())

    def test_wrong_default_date_input_format(self):
        serializer = DateObjectSerializer(data={'date': 'something wrong'})
        self.assertFalse(serializer.is_valid())
        self.assertEquals(serializer.errors, {'date': ['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']})

    def test_wrong_custom_date_input_format(self):
        serializer = DateObjectCustomFormatSerializer(data={'date': '07/31/1984'})
        self.assertFalse(serializer.is_valid())
        self.assertEquals(serializer.errors, {'date': ['Date has wrong format. Use one of these formats instead: YYYY; YYYY -- MM']})

    def test_from_native(self):
 </s> add     def test_from_native_string(self):
        """
        Make sure from_native() accepts default iso input formats.
        """
        self.assertEquals(serializer.fields['id'].read_only, False)
          """
          PK fields other than AutoField fields should not be read_only by default.
          """
          serializer = CharPrimaryKeyModelSerializer()
        self.assertEquals(serializer.fields['id'].read_only, False)
  
  
  class DateFieldTest(TestCase):
      def test_valid_default_date_input_formats(self):
          serializer = DateObjectSerializer(data={'date': '1984-07-31'})
keep keep keep keep replace keep keep keep keep keep
 Add drf settings + output format + testcases 
rest_framework/tests/fields.py