| | 63 | >>> f.clean('W2S 2H3') |
| | 64 | Traceback (most recent call last): |
| | 65 | ... |
| | 66 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |
| | 67 | >>> f.clean('T2W 2H7') |
| | 68 | u'T2W 2H7' |
| | 69 | >>> f.clean('T2S 2W7') |
| | 70 | u'T2S 2W7' |
| | 71 | >>> f.clean('Z2S 2H3') |
| | 72 | Traceback (most recent call last): |
| | 73 | ... |
| | 74 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |
| | 75 | >>> f.clean('T2Z 2H7') |
| | 76 | u'T2Z 2H7' |
| | 77 | >>> f.clean('T2S 2Z7') |
| | 78 | u'T2S 2Z7' |
| | 79 | >>> f.clean('F2S 2H3') |
| | 80 | Traceback (most recent call last): |
| | 81 | ... |
| | 82 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |
| | 83 | >>> f.clean('A2S 2D3') |
| | 84 | Traceback (most recent call last): |
| | 85 | ... |
| | 86 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |
| | 87 | >>> f.clean('A2I 2R3') |
| | 88 | Traceback (most recent call last): |
| | 89 | ... |
| | 90 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |
| | 91 | >>> f.clean('A2I 2R3') |
| | 92 | Traceback (most recent call last): |
| | 93 | ... |
| | 94 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |
| | 95 | >>> f.clean('A2Q 2R3') |
| | 96 | Traceback (most recent call last): |
| | 97 | ... |
| | 98 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |
| | 99 | >>> f.clean('U2B 2R3') |
| | 100 | Traceback (most recent call last): |
| | 101 | ... |
| | 102 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |
| | 103 | >>> f.clean('O2B 2R3') |
| | 104 | Traceback (most recent call last): |
| | 105 | ... |
| | 106 | ValidationError: [u'Enter a postal code in the format XXX XXX.'] |