#NEWLINE# def test_repr_has_all_fields( self ) : #NEWLINE# #INDENT# details = FundingDetails ( { #NEWLINE# #INDENT# 'destination' : 'bank' , #NEWLINE# 'routing_number' : '11112222' , #NEWLINE# 'account_number_last_4' : '3333' , #NEWLINE# 'email' : 'lucyloo@work.com' , #NEWLINE# 'mobile_phone' : '9998887777' , #NEWLINE# #UNINDENT# } ) #NEWLINE# regex = "<FundingDetails {account_number_last_4: '3333', routing_number: '11112222', destination: 'bank', email: 'lucyloo@work.com', mobile_phone: '9998887777'} at \\w+>" #NEWLINE# matches = re . match ( regex , repr ( details ) ) #NEWLINE# self . assertTrue ( matches )