mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #15837. Consolidated all the locaflavor tests into a single, logical, place (regressiontests/localflavor/).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
0
tests/regressiontests/localflavor/kw/__init__.py
Normal file
0
tests/regressiontests/localflavor/kw/__init__.py
Normal file
15
tests/regressiontests/localflavor/kw/tests.py
Normal file
15
tests/regressiontests/localflavor/kw/tests.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from django.contrib.localflavor.kw.forms import KWCivilIDNumberField
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
|
||||
class KWLocalFlavorTests(SimpleTestCase):
|
||||
def test_KWCivilIDNumberField(self):
|
||||
error_invalid = [u'Enter a valid Kuwaiti Civil ID number']
|
||||
valid = {
|
||||
'282040701483': '282040701483',
|
||||
}
|
||||
invalid = {
|
||||
'289332013455': error_invalid,
|
||||
}
|
||||
self.assertFieldOutput(KWCivilIDNumberField, valid, invalid)
|
||||
Reference in New Issue
Block a user