  class DateField(WritableField):
      type_name = 'DateField'
  
      default_error_messages = {
          'invalid': _(u"'%s' value has an invalid date format. It must be "
                       u"in YYYY-MM-DD format."),
          'invalid_date': _(u"'%s' value has the correct format (YYYY-MM-DD) "
                            u"but it is an invalid date."),
      }
      empty = None
  
      def from_native(self, value):
          if value in validators.EMPTY_VALUES:
 
</s> remove         'invalid': _(u"'%s' value has an invalid format. It must be in "
                     u"YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."),
        'invalid_date': _(u"'%s' value has the correct format "
                          u"(YYYY-MM-DD) but it is an invalid date."),
        'invalid_datetime': _(u"'%s' value has the correct format "
                              u"(YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]) "
                              u"but it is an invalid date/time."),
 </s> add         'invalid': _("'%s' value has an invalid format. It must be in "
                     "YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."),
        'invalid_date': _("'%s' value has the correct format "
                          "(YYYY-MM-DD) but it is an invalid date."),
        'invalid_datetime': _("'%s' value has the correct format "
                              "(YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]) "
                              "but it is an invalid date/time."), </s> remove                     raise TypeError(u"%s() received an invalid keyword %r" % (
 </s> add                     raise TypeError("%s() received an invalid keyword %r" % ( </s> remove         self.assertEquals(serializer.errors, {'info': [u'Ensure this value has at most 12 characters (it has 13).']})
 </s> add         self.assertEquals(serializer.errors, {'info': ['Ensure this value has at most 12 characters (it has 13).']}) </s> remove         self.assertEquals(serializer.errors, {'title': [u'Ensure this value has at most 200 characters (it has 201).']})
 </s> add         self.assertEquals(serializer.errors, {'title': ['Ensure this value has at most 200 characters (it has 201).']}) </s> remove                     if value == smart_unicode(k2):
 </s> add                     if value == smart_text(k2):
        'invalid': _("'%s' value has an invalid date format. It must be "
                     "in YYYY-MM-DD format."),
        'invalid_date': _("'%s' value has the correct format (YYYY-MM-DD) "
                          "but it is an invalid date."),
  class DateField(WritableField):
      type_name = 'DateField'
  
      default_error_messages = {
        'invalid': _("'%s' value has an invalid date format. It must be "
                     "in YYYY-MM-DD format."),
        'invalid_date': _("'%s' value has the correct format (YYYY-MM-DD) "
                          "but it is an invalid date."),
        'invalid': _("'%s' value has an invalid date format. It must be "
                     "in YYYY-MM-DD format."),
        'invalid_date': _("'%s' value has the correct format (YYYY-MM-DD) "
                          "but it is an invalid date."),
        'invalid': _("'%s' value has an invalid date format. It must be "
                     "in YYYY-MM-DD format."),
        'invalid_date': _("'%s' value has the correct format (YYYY-MM-DD) "
                          "but it is an invalid date."),
        'invalid': _("'%s' value has an invalid date format. It must be "
                     "in YYYY-MM-DD format."),
        'invalid_date': _("'%s' value has the correct format (YYYY-MM-DD) "
                          "but it is an invalid date."),
      }
      empty = None
  
      def from_native(self, value):
          if value in validators.EMPTY_VALUES:
keep keep keep keep replace replace replace replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/fields.py