#NEWLINE# def test_phone_search_builds_correct_params( self ) : #NEWLINE# #INDENT# with mock . patch ( 'yelp.client.Client._make_request' ) as request : #NEWLINE# #INDENT# request . return_value = '{}' #NEWLINE# params = { #NEWLINE# #INDENT# 'category' : 'fashion' , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . phone_search ( '5555555555' , ** params ) #NEWLINE# params [ 'phone' ] = '5555555555' #NEWLINE# request . assert_called_once_with ( '/v2/phone_search/' , request ) #NEWLINE# assert ( type ( response ) is SearchResponse )