'Test validation with default format'

def testDefaultFormat(self):

    current.deployment_settings.L10n.date_format = '%d/%m/%Y'
    validate = IS_UTC_DATE()
    assertEqual = self.assertEqual
    dtstr = '19/11/2011'
    (value, error) = validate(dtstr)
    assertEqual(error, None)
    assertEqual(value, datetime.date(2011, 11, 19))
    dtstr = '2011-11-19'
    (value, error) = validate(dtstr)
    assertEqual(error, validate.error_message)
    assertEqual(value, dtstr)
