#NEWLINE# def test_create_request_tokens( self ) : #NEWLINE# #INDENT# arglist = [ '--consumer-key' , identity_fakes . consumer_id , '--consumer-secret' , identity_fakes . consumer_secret , '--project' , identity_fakes . project_id ] #NEWLINE# verifylist = [ ( 'consumer_key' , identity_fakes . consumer_id ) , ( 'consumer_secret' , identity_fakes . consumer_secret ) , ( 'project' , identity_fakes . project_id ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# ( columns , data ) = self . cmd . take_action ( parsed_args ) #NEWLINE# self . request_tokens_mock . create . assert_called_with ( identity_fakes . consumer_id , identity_fakes . consumer_secret , identity_fakes . project_id ) #NEWLINE# collist = ( 'expires' , 'id' , 'key' , 'secret' ) #NEWLINE# self . assertEqual ( collist , columns ) #NEWLINE# datalist = ( identity_fakes . request_token_expires , identity_fakes . request_token_id , identity_fakes . request_token_id , identity_fakes . request_token_secret ) #NEWLINE# self . assertEqual ( datalist , data )