Module Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Dict Str Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str keyword Dict Str Str Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Dict Str Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Num Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str keyword ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Str Str keyword Dict Str Str Str Str Str AttributeLoad NameLoad attr keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad decorator_list
N/A N/A mock N/A httplib2 cloudservers.client CloudServersClient nose.tools assert_equal N/A fake_response N/A N/A httplib2 Response N/A status 200 N/A fake_body {"hi": "there"} N/A mock_request N/A N/A mock Mock return_value N/A fake_response fake_body client N/A N/A N/A N/A N/A cl N/A CloudServersClient username apikey N/A N/A cl management_url http://example.com N/A N/A cl auth_token token N/A cl N/A test_get N/A N/A N/A N/A N/A cl N/A client test_get_call N/A N/A N/A N/A N/A N/A resp body N/A N/A cl get /hi N/A N/A N/A mock_request assert_called_with http://example.com/hi?fresh=1234 GET headers N/A X-Auth-Token User-Agent token N/A cl USER_AGENT N/A N/A assert_equal body N/A hi there N/A N/A N/A N/A mock patch object N/A httplib2 Http request mock_request N/A N/A mock patch time.time N/A N/A mock Mock return_value 1234 N/A N/A test_get_call N/A test_post N/A N/A N/A N/A N/A cl N/A client test_post_call N/A N/A N/A N/A N/A N/A N/A cl post /hi body N/A 1 2 3 N/A N/A N/A mock_request assert_called_with http://example.com/hi POST headers N/A X-Auth-Token Content-Type User-Agent token application/json N/A cl USER_AGENT body [1, 2, 3] N/A N/A N/A N/A mock patch object N/A httplib2 Http request mock_request N/A N/A test_post_call N/A