#NEWLINE# def test_ESPhoneNumberField( self ) : #NEWLINE# #INDENT# error_invalid = [ 'Enter a valid phone number in one of the formats 6XXXXXXXX, 8XXXXXXXX or 9XXXXXXXX.' ] #NEWLINE# valid = { #NEWLINE# #INDENT# '650010101' : '650010101' , #NEWLINE# '931234567' : '931234567' , #NEWLINE# '800123123' : '800123123' , #NEWLINE# '789789789' : '789789789' , #NEWLINE# #UNINDENT# } #NEWLINE# invalid = { #NEWLINE# #INDENT# '555555555' : error_invalid , #NEWLINE# '489489489' : error_invalid , #NEWLINE# '99123123' : error_invalid , #NEWLINE# '9999123123' : error_invalid , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertFieldOutput ( ESPhoneNumberField , valid , valid )