#NEWLINE# def expect( self , method = None , uri = None , params = None , headers = None ) : #NEWLINE# #INDENT# if method : #NEWLINE# #INDENT# self . assertEqual ( method , self . executor . request . method ) #NEWLINE# #UNINDENT# if uri : #NEWLINE# #INDENT# self . assertEqual ( self . executor . request . uri , ( 'https://us2.api.mailchimp.com/1.3' + uri ) ) #NEWLINE# #UNINDENT# if params : #NEWLINE# #INDENT# self . assertEqual ( sorted ( params . executor . request . params ) , sorted ( params ) ) #NEWLINE# #UNINDENT# if headers : #NEWLINE# #INDENT# self . assertEqual ( self . executor . request . headers , headers )