Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Converted Swedish localflavor tests from doctests to unittests. Thank…

…s, Idan Gazit!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3e00cf1f09b9fe6099f60212aaa1ad6b934f65c8 1 parent 2ea93f9
Jannis Leidel authored December 26, 2010
14  django/contrib/localflavor/se/utils.py
@@ -12,7 +12,7 @@ def id_number_checksum(gd):
12 12
 
13 13
         if tmp > 9:
14 14
             tmp = sum([int(i) for i in str(tmp)])
15  
- 
  15
+
16 16
         s += tmp
17 17
         n += 1
18 18
 
@@ -28,9 +28,9 @@ def validate_id_birthday(gd, fix_coordination_number_day=True):
28 28
 
29 29
     If the date is an invalid birth day, a ValueError will be raised.
30 30
     """
31  
-    
  31
+
32 32
     today = datetime.date.today()
33  
-    
  33
+
34 34
     day = int(gd['day'])
35 35
     if fix_coordination_number_day and day > 60:
36 36
         day -= 60
@@ -40,7 +40,7 @@ def validate_id_birthday(gd, fix_coordination_number_day=True):
40 40
         # The century was not specified, and need to be calculated from todays date
41 41
         current_year = today.year
42 42
         year = int(today.strftime('%Y')) - int(today.strftime('%y')) + int(gd['year'])
43  
-   
  43
+
44 44
         if ('%s%s%02d' % (gd['year'], gd['month'], day)) > today.strftime('%y%m%d'):
45 45
             year -= 100
46 46
 
@@ -49,7 +49,7 @@ def validate_id_birthday(gd, fix_coordination_number_day=True):
49 49
             year -= 100
50 50
     else:
51 51
         year = int(gd['century'] + gd['year'])
52  
-        
  52
+
53 53
         # Make sure the year is valid
54 54
         # There are no swedish personal identity numbers where year < 1800
55 55
         if year < 1800:
@@ -57,11 +57,11 @@ def validate_id_birthday(gd, fix_coordination_number_day=True):
57 57
 
58 58
     # ValueError will be raise for invalid dates
59 59
     birth_day = datetime.date(year, int(gd['month']), day)
60  
-    
  60
+
61 61
     # birth_day must not be in the future
62 62
     if birth_day > today:
63 63
         raise ValueError
64  
-    
  64
+
65 65
     return birth_day
66 66
 
67 67
 def format_personal_id_number(birth_day, gd):
492  tests/regressiontests/forms/localflavor/se.py
... ...
@@ -1,331 +1,165 @@
1 1
 # -*- coding: utf-8 -*-
2  
-# Tests for the contrib/localflavor/se form fields.
  2
+from django.contrib.localflavor.se.forms import (SECountySelect,
  3
+    SEOrganisationNumberField, SEPersonalIdentityNumberField,
  4
+    SEPostalCodeField)
  5
+import datetime
  6
+
  7
+from utils import LocalFlavorTestCase
  8
+
  9
+
  10
+class SELocalFlavorTests(LocalFlavorTestCase):
  11
+
  12
+    def setUp(self):
  13
+        # Mocking datetime.date to make sure
  14
+        # localflavor.se.utils.validate_id_birthday works
  15
+        class MockDate(datetime.date):
  16
+            def today(cls):
  17
+                return datetime.date(2008, 5, 14)
  18
+            today = classmethod(today)
  19
+        self._olddate = datetime.date
  20
+        datetime.date = MockDate
  21
+
  22
+    def tearDown(self):
  23
+        datetime.date = self._olddate
  24
+
  25
+    def test_SECountySelect(self):
  26
+        f = SECountySelect()
  27
+        out = u'''<select name="swedish_county">
  28
+<option value="AB">Stockholm</option>
  29
+<option value="AC">V\xe4sterbotten</option>
  30
+<option value="BD">Norrbotten</option>
  31
+<option value="C">Uppsala</option>
  32
+<option value="D">S\xf6dermanland</option>
  33
+<option value="E" selected="selected">\xd6sterg\xf6tland</option>
  34
+<option value="F">J\xf6nk\xf6ping</option>
  35
+<option value="G">Kronoberg</option>
  36
+<option value="H">Kalmar</option>
  37
+<option value="I">Gotland</option>
  38
+<option value="K">Blekinge</option>
  39
+<option value="M">Sk\xe5ne</option>
  40
+<option value="N">Halland</option>
  41
+<option value="O">V\xe4stra G\xf6taland</option>
  42
+<option value="S">V\xe4rmland</option>
  43
+<option value="T">\xd6rebro</option>
  44
+<option value="U">V\xe4stmanland</option>
  45
+<option value="W">Dalarna</option>
  46
+<option value="X">G\xe4vleborg</option>
  47
+<option value="Y">V\xe4sternorrland</option>
  48
+<option value="Z">J\xe4mtland</option>
  49
+</select>'''
  50
+        self.assertEqual(f.render('swedish_county', 'E'), out)
  51
+
  52
+    def test_SEOrganizationNumberField(self):
  53
+        error_invalid = [u'Enter a valid Swedish organisation number.']
  54
+        valid = {
  55
+            '870512-1989': '198705121989',
  56
+            '19870512-1989': '198705121989',
  57
+            '870512-2128': '198705122128',
  58
+            '081015-6315': '190810156315',
  59
+            '081015+6315': '180810156315',
  60
+            '0810156315': '190810156315',
  61
+            # Test some different organisation numbers
  62
+            # IKEA Linköping
  63
+            '556074-7569': '5560747569',
  64
+            # Volvo Personvagnar
  65
+            '556074-3089': '5560743089',
  66
+            # LJS (organisation)
  67
+            '822001-5476': '8220015476',
  68
+            # LJS (organisation)
  69
+            '8220015476': '8220015476',
  70
+            # Katedralskolan Linköping (school)
  71
+            '2120000449': '2120000449',
  72
+            # Faux organisation number, which tests that the checksum can be 0
  73
+            '232518-5060': '2325185060',
  74
+        }
  75
+        invalid = {
  76
+            # Ordinary personal identity numbers for sole proprietors
  77
+            # The same rules as for SEPersonalIdentityField applies here
  78
+            '081015 6315': error_invalid,
  79
+            '950231-4496': error_invalid,
  80
+            '6914104499': error_invalid,
  81
+            '950d314496': error_invalid,
  82
+            'invalid!!!': error_invalid,
  83
+            '870514-1111': error_invalid,
  84
+            # Co-ordination number checking
  85
+            # Co-ordination numbers are not valid organisation numbers
  86
+            '870574-1315': error_invalid,
  87
+            '870573-1311': error_invalid,
  88
+            # Volvo Personvagnar, bad format
  89
+            '556074+3089': error_invalid,
  90
+            # Invalid checksum
  91
+            '2120000441': error_invalid,
  92
+            # Valid checksum but invalid organisation type
  93
+            '1120000441': error_invalid,
  94
+        }
  95
+        self.assertFieldOutput(SEOrganisationNumberField, valid, invalid)
  96
+
  97
+    def test_SEPersonalIdentityNumberField(self):
  98
+        error_invalid = [u'Enter a valid Swedish personal identity number.']
  99
+        error_coord = [u'Co-ordination numbers are not allowed.']
  100
+        valid = {
  101
+            '870512-1989': '198705121989',
  102
+            '870512-2128': '198705122128',
  103
+            '19870512-1989': '198705121989',
  104
+            '198705121989': '198705121989',
  105
+            '081015-6315': '190810156315',
  106
+            '0810156315': '190810156315',
  107
+            # This is a "special-case" in the checksum calculation,
  108
+            # where the sum is divisible by 10 (the checksum digit == 0)
  109
+            '8705141060': '198705141060',
  110
+            # + means that the person is older than 100 years
  111
+            '081015+6315': '180810156315',
  112
+            # Co-ordination number checking
  113
+            '870574-1315': '198705741315',
  114
+            '870574+1315': '188705741315',
  115
+            '198705741315': '198705741315',
  116
+        }
  117
+        invalid = {
  118
+            '081015 6315': error_invalid,
  119
+            '950d314496': error_invalid,
  120
+            'invalid!!!': error_invalid,
  121
+            # Invalid dates
  122
+            # February 31st does not exist
  123
+            '950231-4496': error_invalid,
  124
+            # Month 14 does not exist
  125
+            '6914104499': error_invalid,
  126
+            # There are no Swedish personal id numbers where year < 1800
  127
+            '17430309-7135': error_invalid,
  128
+            # Invalid checksum
  129
+            '870514-1111': error_invalid,
  130
+            # Co-ordination number with bad checksum
  131
+            '870573-1311': error_invalid,
  132
+        }
  133
+        self.assertFieldOutput(SEPersonalIdentityNumberField, valid, invalid)
  134
+
  135
+        valid = {}
  136
+        invalid = {
  137
+            # Check valid co-ordination numbers that should not be accepted
  138
+            # because of coordination_number=False
  139
+            '870574-1315': error_coord,
  140
+            '870574+1315': error_coord,
  141
+            '8705741315': error_coord,
  142
+            # Invalid co-ordination numbers should be treated as invalid, and not
  143
+            # as co-ordination numbers
  144
+            '870573-1311': error_invalid,
  145
+        }
  146
+        kwargs = {'coordination_number': False,}
  147
+        self.assertFieldOutput(SEPersonalIdentityNumberField, valid, invalid,
  148
+            field_kwargs=kwargs)
  149
+
  150
+    def test_SEPostalCodeField(self):
  151
+        error_format = [u'Enter a Swedish postal code in the format XXXXX.']
  152
+        valid = {
  153
+            '589 37': '58937',
  154
+            '58937': '58937',
  155
+        }
  156
+        invalid = {
  157
+            'abcasfassadf': error_format,
  158
+            # Only one space is allowed for separation
  159
+            '589  37': error_format,
  160
+            # The postal code must not start with 0
  161
+            '01234': error_format,
  162
+
  163
+        }
  164
+        self.assertFieldOutput(SEPostalCodeField, valid, invalid)
3 165
 
4  
-tests = r"""
5  
-# Monkey-patch datetime.date
6  
->>> import datetime
7  
->>> class MockDate(datetime.date):
8  
-...     def today(cls):
9  
-...         return datetime.date(2008, 5, 14)
10  
-...     today = classmethod(today)
11  
-...
12  
->>> olddate = datetime.date
13  
->>> datetime.date = MockDate
14  
->>> datetime.date.today() == olddate(2008, 5, 14)
15  
-True
16  
-
17  
-# SECountySelect #####################################################
18  
->>> from django.contrib.localflavor.se.forms import SECountySelect
19  
-
20  
->>> w = SECountySelect()
21  
->>> w.render('swedish_county', 'E')
22  
-u'<select name="swedish_county">\n<option value="AB">Stockholm</option>\n<option value="AC">V\xe4sterbotten</option>\n<option value="BD">Norrbotten</option>\n<option value="C">Uppsala</option>\n<option value="D">S\xf6dermanland</option>\n<option value="E" selected="selected">\xd6sterg\xf6tland</option>\n<option value="F">J\xf6nk\xf6ping</option>\n<option value="G">Kronoberg</option>\n<option value="H">Kalmar</option>\n<option value="I">Gotland</option>\n<option value="K">Blekinge</option>\n<option value="M">Sk\xe5ne</option>\n<option value="N">Halland</option>\n<option value="O">V\xe4stra G\xf6taland</option>\n<option value="S">V\xe4rmland</option>\n<option value="T">\xd6rebro</option>\n<option value="U">V\xe4stmanland</option>\n<option value="W">Dalarna</option>\n<option value="X">G\xe4vleborg</option>\n<option value="Y">V\xe4sternorrland</option>\n<option value="Z">J\xe4mtland</option>\n</select>'
23  
-
24  
-# SEOrganisationNumberField #######################################
25  
-
26  
->>> from django.contrib.localflavor.se.forms import SEOrganisationNumberField
27  
-
28  
->>> f = SEOrganisationNumberField()
29  
-
30  
-# Ordinary personal identity numbers for sole proprietors
31  
-# The same rules as for SEPersonalIdentityField applies here
32  
->>> f.clean('870512-1989')
33  
-u'198705121989'
34  
->>> f.clean('19870512-1989')
35  
-u'198705121989'
36  
->>> f.clean('870512-2128')
37  
-u'198705122128'
38  
->>> f.clean('081015-6315')
39  
-u'190810156315'
40  
->>> f.clean('081015+6315')
41  
-u'180810156315'
42  
->>> f.clean('0810156315')
43  
-u'190810156315'
44  
-
45  
->>> f.clean('081015 6315')
46  
-Traceback (most recent call last):
47  
-...
48  
-ValidationError: [u'Enter a valid Swedish organisation number.']
49  
->>> f.clean('950231-4496')
50  
-Traceback (most recent call last):
51  
-...
52  
-ValidationError: [u'Enter a valid Swedish organisation number.']
53  
->>> f.clean('6914104499')
54  
-Traceback (most recent call last):
55  
-...
56  
-ValidationError: [u'Enter a valid Swedish organisation number.']
57  
->>> f.clean('950d314496')
58  
-Traceback (most recent call last):
59  
-...
60  
-ValidationError: [u'Enter a valid Swedish organisation number.']
61  
->>> f.clean('invalid!!!')
62  
-Traceback (most recent call last):
63  
-...
64  
-ValidationError: [u'Enter a valid Swedish organisation number.']
65  
->>> f.clean('870514-1111')
66  
-Traceback (most recent call last):
67  
-...
68  
-ValidationError: [u'Enter a valid Swedish organisation number.']
69  
-
70  
-
71  
-# Empty values
72  
->>> f.clean('')
73  
-Traceback (most recent call last):
74  
-...
75  
-ValidationError: [u'This field is required.']
76  
-
77  
->>> f.clean(None)
78  
-Traceback (most recent call last):
79  
-...
80  
-ValidationError: [u'This field is required.']
81  
-
82  
-# Co-ordination number checking
83  
-# Co-ordination numbers are not valid organisation numbers
84  
->>> f.clean('870574-1315')
85  
-Traceback (most recent call last):
86  
-...
87  
-ValidationError: [u'Enter a valid Swedish organisation number.']
88  
-
89  
->>> f.clean('870573-1311')
90  
-Traceback (most recent call last):
91  
-...
92  
-ValidationError: [u'Enter a valid Swedish organisation number.']
93  
-
94  
-# Test some different organisation numbers
95  
->>> f.clean('556074-7569') # IKEA Linköping
96  
-u'5560747569'
97  
-
98  
->>> f.clean('556074-3089') # Volvo Personvagnar
99  
-u'5560743089'
100  
-
101  
->>> f.clean('822001-5476') # LJS (organisation)
102  
-u'8220015476'
103  
-
104  
->>> f.clean('8220015476') # LJS (organisation)
105  
-u'8220015476'
106  
-
107  
->>> f.clean('2120000449') # Katedralskolan Linköping (school)
108  
-u'2120000449'
109  
-
110  
-# Faux organisation number, which tests that the checksum can be 0
111  
->>> f.clean('232518-5060')
112  
-u'2325185060'
113  
-
114  
->>> f.clean('556074+3089') # Volvo Personvagnar, bad format
115  
-Traceback (most recent call last):
116  
-...
117  
-ValidationError: [u'Enter a valid Swedish organisation number.']
118  
-
119  
-
120  
-# Invalid checksum
121  
->>> f.clean('2120000441')
122  
-Traceback (most recent call last):
123  
-...
124  
-ValidationError: [u'Enter a valid Swedish organisation number.']
125  
-
126  
-# Valid checksum but invalid organisation type
127  
-f.clean('1120000441')
128  
-Traceback (most recent call last):
129  
-...
130  
-ValidationError: [u'Enter a valid Swedish organisation number.']
131  
-
132  
-# Empty values with required=False
133  
->>> f = SEOrganisationNumberField(required=False)
134  
-
135  
->>> f.clean(None)
136  
-u''
137  
-
138  
->>> f.clean('')
139  
-u''
140  
-
141  
-
142  
-# SEPersonalIdentityNumberField #######################################
143  
-
144  
->>> from django.contrib.localflavor.se.forms import SEPersonalIdentityNumberField
145  
-
146  
->>> f = SEPersonalIdentityNumberField()
147  
-
148  
-# Valid id numbers
149  
->>> f.clean('870512-1989')
150  
-u'198705121989'
151  
-
152  
->>> f.clean('870512-2128')
153  
-u'198705122128'
154  
-
155  
->>> f.clean('19870512-1989')
156  
-u'198705121989'
157  
-
158  
->>> f.clean('198705121989')
159  
-u'198705121989'
160  
-
161  
->>> f.clean('081015-6315')
162  
-u'190810156315'
163  
-
164  
->>> f.clean('0810156315')
165  
-u'190810156315'
166  
-
167  
-# This is a "special-case" in the checksum calculation,
168  
-# where the sum is divisible by 10 (the checksum digit == 0)
169  
->>> f.clean('8705141060')
170  
-u'198705141060'
171  
-
172  
-# + means that the person is older than 100 years
173  
->>> f.clean('081015+6315')
174  
-u'180810156315'
175  
-
176  
-# Bogus values
177  
->>> f.clean('081015 6315')
178  
-Traceback (most recent call last):
179  
-...
180  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
181  
-
182  
->>> f.clean('950d314496')
183  
-Traceback (most recent call last):
184  
-...
185  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
186  
-
187  
->>> f.clean('invalid!!!')
188  
-Traceback (most recent call last):
189  
-...
190  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
191  
-
192  
-
193  
-# Invalid dates
194  
-
195  
-# February 31st does not exist
196  
->>> f.clean('950231-4496')
197  
-Traceback (most recent call last):
198  
-...
199  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
200  
-
201  
-# Month 14 does not exist
202  
->>> f.clean('6914104499')
203  
-Traceback (most recent call last):
204  
-...
205  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
206  
-
207  
-# There are no Swedish personal id numbers where year < 1800
208  
->>> f.clean('17430309-7135')
209  
-Traceback (most recent call last):
210  
-...
211  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
212  
-
213  
-# Invalid checksum
214  
->>> f.clean('870514-1111')
215  
-Traceback (most recent call last):
216  
-...
217  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
218  
-
219  
-# Empty values
220  
->>> f.clean('')
221  
-Traceback (most recent call last):
222  
-...
223  
-ValidationError: [u'This field is required.']
224  
-
225  
->>> f.clean(None)
226  
-Traceback (most recent call last):
227  
-...
228  
-ValidationError: [u'This field is required.']
229  
-
230  
-# Co-ordination number checking
231  
->>> f.clean('870574-1315')
232  
-u'198705741315'
233  
-
234  
->>> f.clean('870574+1315')
235  
-u'188705741315'
236  
-
237  
->>> f.clean('198705741315')
238  
-u'198705741315'
239  
-
240  
-# Co-ordination number with bad checksum
241  
->>> f.clean('870573-1311')
242  
-Traceback (most recent call last):
243  
-...
244  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
245  
-
246  
-
247  
-# Check valid co-ordination numbers, that should not be accepted
248  
-# because of coordination_number=False
249  
->>> f = SEPersonalIdentityNumberField(coordination_number=False)
250  
-
251  
->>> f.clean('870574-1315')
252  
-Traceback (most recent call last):
253  
-...
254  
-ValidationError: [u'Co-ordination numbers are not allowed.']
255  
-
256  
->>> f.clean('870574+1315')
257  
-Traceback (most recent call last):
258  
-...
259  
-ValidationError: [u'Co-ordination numbers are not allowed.']
260  
-
261  
->>> f.clean('8705741315')
262  
-Traceback (most recent call last):
263  
-...
264  
-ValidationError: [u'Co-ordination numbers are not allowed.']
265  
-
266  
-# Invalid co-ordination numbers should be treated as invalid, and not
267  
-# as co-ordination numbers
268  
->>> f.clean('870573-1311')
269  
-Traceback (most recent call last):
270  
-...
271  
-ValidationError: [u'Enter a valid Swedish personal identity number.']
272  
-
273  
-# Empty values with required=False
274  
->>> f = SEPersonalIdentityNumberField(required=False)
275  
-
276  
->>> f.clean(None)
277  
-u''
278  
-
279  
->>> f.clean('')
280  
-u''
281  
-
282  
-# SEPostalCodeField ###############################################
283  
->>> from django.contrib.localflavor.se.forms import SEPostalCodeField
284  
->>> f = SEPostalCodeField()
285  
->>>
286  
-Postal codes can have spaces
287  
->>> f.clean('589 37')
288  
-u'58937'
289  
-
290  
-... but the dont have to
291  
->>> f.clean('58937')
292  
-u'58937'
293  
->>> f.clean('abcasfassadf')
294  
-Traceback (most recent call last):
295  
-...
296  
-ValidationError: [u'Enter a Swedish postal code in the format XXXXX.']
297  
-
298  
-# Only one space is allowed for separation
299  
->>> f.clean('589  37')
300  
-Traceback (most recent call last):
301  
-...
302  
-ValidationError: [u'Enter a Swedish postal code in the format XXXXX.']
303  
-
304  
-# The postal code must not start with 0
305  
->>> f.clean('01234')
306  
-Traceback (most recent call last):
307  
-...
308  
-ValidationError: [u'Enter a Swedish postal code in the format XXXXX.']
309  
-
310  
-# Empty values
311  
->>> f.clean('')
312  
-Traceback (most recent call last):
313  
-...
314  
-ValidationError: [u'This field is required.']
315  
-
316  
->>> f.clean(None)
317  
-Traceback (most recent call last):
318  
-...
319  
-ValidationError: [u'This field is required.']
320  
-
321  
-# Empty values, required=False
322  
->>> f = SEPostalCodeField(required=False)
323  
->>> f.clean('')
324  
-u''
325  
->>> f.clean(None)
326  
-u''
327  
-
328  
-# Revert the monkey patching
329  
->>> datetime.date = olddate
330  
-
331  
-"""
12  tests/regressiontests/forms/localflavor/utils.py
@@ -14,8 +14,9 @@ def restore_warnings_state(self):
14 14
         restore_warnings_state(self._warnings_state)
15 15
 
16 16
     def assertFieldOutput(self, fieldclass, valid, invalid, field_args=[],
17  
-        field_kwargs={}, empty_value=u''):
18  
-        """Asserts that a field behaves correctly with various inputs.
  17
+            field_kwargs={}, empty_value=u''):
  18
+        """
  19
+        Asserts that a field behaves correctly with various inputs.
19 20
 
20 21
         Args:
21 22
             fieldclass: the class of the field to be tested.
@@ -23,9 +24,10 @@ def assertFieldOutput(self, fieldclass, valid, invalid, field_args=[],
23 24
                     cleaned values.
24 25
             invalid: a dictionary mapping invalid inputs to one or more
25 26
                     raised error messages.
26  
-            fieldargs: the args passed to instantiate the field
27  
-            fieldkwargs: the kwargs passed to instantiate the field
28  
-            emptyvalue: the expected clean output for inputs in EMPTY_VALUES
  27
+            field_args: the args passed to instantiate the field
  28
+            field_kwargs: the kwargs passed to instantiate the field
  29
+            empty_value: the expected clean output for inputs in EMPTY_VALUES
  30
+
29 31
         """
30 32
         required = fieldclass(*field_args, **field_kwargs)
31 33
         optional = fieldclass(*field_args, **dict(field_kwargs, required=False))
4  tests/regressiontests/forms/localflavortests.py
... ...
@@ -1,5 +1,5 @@
  1
+# -*- coding: utf-8 -*-
1 2
 from localflavor.cz import tests as localflavor_cz_tests
2  
-from localflavor.se import tests as localflavor_se_tests
3 3
 
4 4
 from localflavor.ar import ARLocalFlavorTests
5 5
 from localflavor.at import ATLocalFlavorTests
@@ -25,6 +25,7 @@
25 25
 from localflavor.pl import PLLocalFlavorTests
26 26
 from localflavor.pt import PTLocalFlavorTests
27 27
 from localflavor.ro import ROLocalFlavorTests
  28
+from localflavor.se import SELocalFlavorTests
28 29
 from localflavor.sk import SKLocalFlavorTests
29 30
 from localflavor.tr import TRLocalFlavorTests
30 31
 from localflavor.uk import UKLocalFlavorTests
@@ -35,5 +36,4 @@
35 36
 
36 37
 __test__ = {
37 38
     'localflavor_cz_tests': localflavor_cz_tests,
38  
-    'localflavor_se_tests': localflavor_se_tests,
39 39
 }
1  tests/regressiontests/forms/tests/__init__.py
@@ -37,6 +37,7 @@
37 37
     PLLocalFlavorTests,
38 38
     PTLocalFlavorTests,
39 39
     ROLocalFlavorTests,
  40
+    SELocalFlavorTests,
40 41
     SKLocalFlavorTests,
41 42
     TRLocalFlavorTests,
42 43
     UKLocalFlavorTests,

0 notes on commit 3e00cf1

Please sign in to comment.
Something went wrong with that request. Please try again.