Module Import alias ImportFrom alias alias alias alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Num Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Dict Str Str Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A warnings django.contrib.localflavor.ca.forms CAPostalCodeField CAPhoneNumberField CAProvinceField CAProvinceSelect CASocialInsuranceNumberField django.test SimpleTestCase CALocalFlavorTests N/A SimpleTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self save_warnings_state N/A N/A N/A warnings filterwarnings ignore category RuntimeWarning module django.contrib.localflavor.ca.ca_provinces N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self restore_warnings_state N/A test_CAProvinceSelect N/A N/A self N/A N/A N/A f N/A CAProvinceSelect N/A out <select name="province">
<option value="AB" selected="selected">Alberta</option>
<option value="BC">British Columbia</option>
<option value="MB">Manitoba</option>
<option value="NB">New Brunswick</option>
<option value="NL">Newfoundland and Labrador</option>
<option value="NT">Northwest Territories</option>
<option value="NS">Nova Scotia</option>
<option value="NU">Nunavut</option>
<option value="ON">Ontario</option>
<option value="PE">Prince Edward Island</option>
<option value="QC">Quebec</option>
<option value="SK">Saskatchewan</option>
<option value="YT">Yukon</option>
</select> N/A N/A N/A self assertHTMLEqual N/A N/A f render province AB out N/A test_CAPostalCodeField N/A N/A self N/A N/A N/A error_format N/A Enter a postal code in the format XXX XXX. N/A valid N/A T2S 2H7 T2S 2W7 T2S 2Z7 T2Z 2H7 T2S2H7 t2s 2h7 t2s2h7 t2s            2H7   t2s    2H7   T2S 2H7 T2S 2W7 T2S 2Z7 T2Z 2H7 T2S 2H7 T2S 2H7 T2S 2H7 T2S 2H7 T2S 2H7 N/A invalid N/A T2S 2H 2T6 H8I T2S2H t2s h8i 90210 W2S 2H3 Z2S 2H3 F2S 2H3 A2S 2D3 A2I 2R3 A2Q 2R3 U2B 2R3 O2B 2R3 error_format error_format error_format error_format error_format error_format error_format error_format error_format error_format error_format error_format error_format N/A N/A N/A self assertFieldOutput CAPostalCodeField valid invalid N/A test_CAPhoneNumberField N/A N/A self N/A N/A N/A error_format N/A Phone numbers must be in XXX-XXX-XXXX format. N/A valid N/A 403-555-1212 4035551212 403 555-1212 (403) 555-1212 403 555 1212 403.555.1212 403.555-1212  (403) 555.1212  403-555-1212 403-555-1212 403-555-1212 403-555-1212 403-555-1212 403-555-1212 403-555-1212 403-555-1212 N/A invalid N/A 555-1212 403-55-1212 error_format error_format N/A N/A N/A self assertFieldOutput CAPhoneNumberField valid invalid N/A test_CAProvinceField N/A N/A self N/A N/A N/A error_format N/A Enter a Canadian province or territory. N/A valid N/A ab BC nova scotia   manitoba  AB BC NS MB N/A invalid N/A T2S 2H7 error_format N/A N/A N/A self assertFieldOutput CAProvinceField valid invalid N/A test_CASocialInsuranceField N/A N/A self N/A N/A N/A error_format N/A Enter a valid Canadian Social Insurance number in XXX-XXX-XXX format. N/A valid N/A 046-454-286 046-454-286 N/A invalid N/A 046-454-287 046 454 286 046-44-286 error_format error_format error_format N/A N/A N/A self assertFieldOutput CASocialInsuranceNumberField valid invalid N/A N/A