#NEWLINE# def test_INZipCodeField( self ) : #NEWLINE# #INDENT# error_format = [ 'Enter a zip code in the format XXXXXX or XXX XXX.' ] #NEWLINE# valid = { #NEWLINE# #INDENT# '360311' : '360311' , #NEWLINE# '360 311' : '360311' , #NEWLINE# #UNINDENT# } #NEWLINE# invalid = { #NEWLINE# #INDENT# '36 0311' : error_format , #NEWLINE# '3603111' : error_format , #NEWLINE# '360 31' : error_format , #NEWLINE# '36031' : error_format , #NEWLINE# 'O2B 2R3' : error_format , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertFieldOutput ( INZipCodeField , valid , invalid )