~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to tests/regressiontests/localflavor/kw/tests.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone, Jakub Wilk, Luke Faraone
  • Date: 2013-05-09 15:10:47 UTC
  • mfrom: (1.1.21) (4.4.27 sid)
  • Revision ID: package-import@ubuntu.com-20130509151047-aqv8d71oj9wvcv8c
Tags: 1.5.1-2
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Luke Faraone ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from django.contrib.localflavor.kw.forms import KWCivilIDNumberField
2
 
 
3
 
from django.test import SimpleTestCase
4
 
 
5
 
 
6
 
class KWLocalFlavorTests(SimpleTestCase):
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)