mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +00:00
82b33b1d80
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
16 lines
450 B
Python
16 lines
450 B
Python
# -*- coding: utf-8 -*-
|
|
# Tests for the contrib/localflavor/ KW form fields.
|
|
|
|
tests = r"""
|
|
# KWCivilIDNumberField ########################################################
|
|
|
|
>>> from django.contrib.localflavor.kw.forms import KWCivilIDNumberField
|
|
>>> f = KWCivilIDNumberField()
|
|
>>> f.clean('282040701483')
|
|
'282040701483'
|
|
>>> f.clean('289332013455')
|
|
Traceback (most recent call last):
|
|
...
|
|
ValidationError: [u'Enter a valid Kuwaiti Civil ID number']
|
|
"""
|