parts/django/tests/regressiontests/forms/localflavor/kw.py
changeset 307 c6bca38c1cbf
equal deleted inserted replaced
306:5ff1fc726848 307:c6bca38c1cbf
       
     1 from django.contrib.localflavor.kw.forms import KWCivilIDNumberField
       
     2 
       
     3 from utils import LocalFlavorTestCase
       
     4 
       
     5 
       
     6 class KWLocalFlavorTests(LocalFlavorTestCase):
       
     7     def test_KWCivilIDNumberField(self):
       
     8         error_invalid = [u'Enter a valid Kuwaiti Civil ID number']
       
     9         valid = {
       
    10             '282040701483': '282040701483',
       
    11         }
       
    12         invalid = {
       
    13             '289332013455': error_invalid,
       
    14         }
       
    15         self.assertFieldOutput(KWCivilIDNumberField, valid, invalid)
       
    16