#NEWLINE# def test_arbitrary_method( ) : #NEWLINE# #INDENT# request_encoder = mock . Mock ( ) #NEWLINE# request_encoder . return_value = sentinel . request #NEWLINE# transport = mock . Mock ( ) #NEWLINE# transport . return_value = sentinel . transport_response #NEWLINE# response_decoder = mock . Mock ( ) #NEWLINE# response_decoder . return_value = sentinel . response #NEWLINE# test_client = client . Client ( request_encoder , transport , response_decoder ) #NEWLINE# response = test_client . arbitrary . method ( id = 5 ) #NEWLINE# assert ( ( ( 'arbitrary.method' , ) , dict ( id = 5 ) ) == request_encoder . call_args ) #NEWLINE# assert ( ( ( sentinel . request , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) == transport . call_args ) #NEWLINE# assert ( ( ( sentinel . transport_response , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) == response_decoder . call_args ) #NEWLINE# assert ( sentinel . response == response )