PageRenderTime 41ms CodeModel.GetById 36ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/forms/localflavor/kw.py

https://code.google.com/p/mango-py/
Python | 16 lines | 12 code | 4 blank | 0 comment | 0 complexity | 37d6430f8fb8c68b34717035ae282ef4 MD5 | raw file
 1from django.contrib.localflavor.kw.forms import KWCivilIDNumberField
 2
 3from utils import LocalFlavorTestCase
 4
 5
 6class 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