#NEWLINE# def _execute( self , action , args ) : #NEWLINE# #INDENT# ec2_request = ec2api . api . apirequest . APIRequest ( action , 'fake_v1' , args ) #NEWLINE# ec2_context = create_context ( ) #NEWLINE# environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'FAKE' , #NEWLINE# 'ec2.request' : ec2_request , #NEWLINE# 'ec2api.context' : ec2_request , #NEWLINE# #UNINDENT# } #NEWLINE# request = ec2api . wsgi . Request ( environ ) #NEWLINE# response = request . send ( ec2api . api . Executor ( ) ) #NEWLINE# return ( response . status_code , self . _check_and_transform_response ( response , action ) )