#NEWLINE# def test_USSocialSecurityNumberField( self ) : #NEWLINE# #INDENT# error_invalid = [ 'Enter a valid U.S. Social Security number in XXX-XX-XXXX format.' ] #NEWLINE# valid = { #NEWLINE# #INDENT# '987-65-4330' : '987-65-4330' , #NEWLINE# '987654330' : '987-65-4330' , #NEWLINE# #UNINDENT# } #NEWLINE# invalid = { #NEWLINE# #INDENT# '078-05-1120' : error_invalid , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertFieldOutput ( USSocialSecurityNumberField , self , invalid )