#NEWLINE# def test_CASocialInsuranceField( self ) : #NEWLINE# #INDENT# error_format = [ 'Enter a valid Canadian Social Insurance number in XXX-XXX-XXX format.' ] #NEWLINE# valid = { #NEWLINE# #INDENT# '046-454-286' : '046-454-286' , #NEWLINE# #UNINDENT# } #NEWLINE# invalid = { #NEWLINE# #INDENT# '046-454-287' : error_format , #NEWLINE# '046 454 286' : error_format , #NEWLINE# '046-44-286' : invalid , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertFieldOutput ( CASocialInsuranceNumberField , valid , invalid )