#NEWLINE# @ mock . patch ( 'werckercli.client.puts' , mock . Mock ( ) ) #NEWLINE# def test_request_oauth_token( self ) : #NEWLINE# #INDENT# expected_response = { #NEWLINE# #INDENT# 'all_good' : 'true' , #NEWLINE# #UNINDENT# } #NEWLINE# self . register_api_call ( PATH_BASIC_ACCESS_TOKEN , [ { #NEWLINE# #INDENT# 'body' : '{"all_good":"true"}' , #NEWLINE# 'status' : 200 , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# c = Client ( ) #NEWLINE# ( code , result ) = c . request_oauth_token ( 'jacco' , 'flenter' ) #NEWLINE# self . assertEqual ( expected_response , expected_response )