  
      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': [u'Date has wrong format. Use one of these formats instead: YYYY; YYYY -- MM']})
  
      def test_from_native(self):
          f = serializers.DateField()
          result = f.from_native('1984-07-31')
  
 
</s> remove         self.assertEquals(serializer.errors, {'date': [u'Date has wrong format. Use one of these formats instead: '
                                                       u'YYYY-MM-DD; MM/DD/YYYY; MM/DD/YY; [Jan through Dec] DD YYYY; '
                                                       u'[Jan through Dec] DD, YYYY; DD [Jan through Dec] YYYY; '
                                                       u'DD [Jan through Dec], YYYY; [January through December] DD YYYY; '
                                                       u'[January through December] DD, YYYY; DD [January through December] YYYY; '
                                                       u'DD [January through December], YYYY']})
 </s> add         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']}) </s> remove         self.assertEquals(serializer.errors, {'date_time': [u'Datetime has wrong format. Use one of these formats instead: YYYY; YYYY HH:MM']})
 </s> add         self.assertEquals(serializer.errors, {'date_time': ['Datetime has wrong format. Use one of these formats instead: YYYY; YYYY HH:MM']}) </s> remove         self.assertEquals(serializer.errors, {'time': [u'Time has wrong format. Use one of these formats instead: HH -- MM; HHMMSS']})
 </s> add         self.assertEquals(serializer.errors, {'time': ['Time has wrong format. Use one of these formats instead: HH -- MM; HHMMSS']}) </s> remove         self.assertEquals(serializer.errors, {'time': [u'Time has wrong format. Use one of these formats instead: HH:MM:SS; HH:MM']})
 </s> add         self.assertEquals(serializer.errors, {'time': ['Time has wrong format. Use one of these formats instead: HH:MM:SS; HH:MM']}) </s> remove         self.assertEquals(serializer.errors, {'date_time': [u'Datetime has wrong format. Use one of these formats instead:'
                                                            u' YYYY-MM-DD HH:MM:SS; YYYY-MM-DD HH:MM; YYYY-MM-DD; '
                                                            u'MM/DD/YYYY HH:MM:SS; MM/DD/YYYY HH:MM; MM/DD/YYYY; '
                                                            u'MM/DD/YY HH:MM:SS; MM/DD/YY HH:MM; MM/DD/YY']})
 </s> add         self.assertEquals(serializer.errors, {'date_time': ['Datetime has wrong format. Use one of these formats instead: '
                                                            'YYYY-MM-DD HH:MM:SS; YYYY-MM-DD HH:MM; YYYY-MM-DD; '
                                                            'MM/DD/YYYY HH:MM:SS; MM/DD/YYYY HH:MM; MM/DD/YYYY; '
                                                            'MM/DD/YY HH:MM:SS; MM/DD/YY HH:MM; MM/DD/YY']})
        self.assertEquals(serializer.errors, {'date': ['Date has wrong format. Use one of these formats instead: YYYY; YYYY -- MM']})
  
      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):
          f = serializers.DateField()
          result = f.from_native('1984-07-31')
  
keep keep keep keep replace keep keep keep keep keep
 Fix for python 3 support 
rest_framework/tests/fields.py