Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str Dict Str Dict Expr Call AttributeLoad NameLoad attr Str Str Dict Str Dict Str Str Str Str Assign NameStore Dict Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Dict Str Str Dict Str Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Num Dict NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Dict Str Str Dict Str Str Str Str Str Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str With Call AttributeLoad NameLoad attr Str NameLoad body With Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A N/A json N/A logging N/A mock N/A fixtures N/A requests rackclient client rackclient.tests utils ClientTest N/A N/A utils TestCase N/A test_log_req N/A N/A self N/A N/A N/A N/A self logger N/A N/A self useFixture N/A N/A fixtures FakeLogger name N/A client __name__ format %(message)s level N/A logging DEBUG nuke_handlers True N/A cs N/A N/A client HTTPClient rack_url True N/A N/A N/A cs http_log_req GET /foo N/A headers N/A N/A N/A N/A cs http_log_req GET /foo N/A headers N/A Content-Type User-Agent application/json python-rackclient N/A data N/A group N/A name description group1 This is group1 N/A N/A N/A cs http_log_req POST /foo N/A headers data N/A Content-Type application/json N/A N/A json dumps data N/A output N/A N/A N/A N/A self logger output split N/A N/A N/A self assertIn REQ: curl -i '/foo' -X GET output N/A N/A N/A self assertIn REQ: curl -i '/foo' -X GET -H "Content-Type: application/json" -H "User-Agent: python-rackclient" output N/A N/A N/A self assertIn REQ: curl -i '/foo' -X POST -H "Content-Type: application/json" -d '{"group": {"name": "group1", "description": "This is group1"}}' output N/A test_log_resp N/A N/A self N/A N/A N/A N/A self logger N/A N/A self useFixture N/A N/A fixtures FakeLogger name N/A client __name__ format %(message)s level N/A logging DEBUG nuke_handlers True N/A cs N/A N/A client HTTPClient rack_url True N/A text {"group": {"name": "group1", "description": "This is group1"}} N/A resp N/A N/A utils TestResponse N/A status_code headers text 200 N/A text N/A N/A N/A cs http_log_resp resp N/A output N/A N/A N/A N/A self logger output split N/A N/A N/A self assertIn RESP: [200] {} output N/A N/A N/A self assertIn RESP BODY: {"group": {"name": "group1", "description": "This is group1"}} output N/A test_request N/A N/A self N/A N/A N/A cs N/A N/A client HTTPClient http://www.foo.com False N/A data {"group": { "gid": "11111111","user_id": "4ffc664c198e435e9853f253lkbcd7a7","project_id": "9sac664c198e435e9853f253lkbcd7a7","name": "group1","description": "This is group1","status": "ACTIVE"}} N/A mock_request N/A N/A mock Mock N/A N/A mock_request return_value N/A N/A requests Response N/A N/A N/A mock_request return_value status_code 201 N/A N/A N/A mock_request return_value _content data N/A N/A N/A mock patch requests.request mock_request N/A N/A N/A resp body N/A N/A cs post /groups body data N/A kwargs N/A headers data N/A User-Agent Accept Content-Type python-rackclient application/json application/json N/A N/A json dumps data N/A N/A N/A mock_request assert_called_with POST http://www.foo.com/groups kwargs N/A test_request_raise_exception N/A N/A self N/A N/A N/A cs N/A N/A client HTTPClient http://www.foo.com False N/A mock_request N/A N/A mock Mock N/A N/A mock_request return_value N/A N/A requests Response N/A N/A N/A mock_request return_value status_code 404 N/A mock_exec N/A N/A mock Mock N/A N/A mock_exec return_value N/A Exception Not Found N/A N/A N/A mock patch requests.request mock_request N/A N/A N/A N/A mock patch rackclient.exceptions.from_response mock_exec N/A N/A N/A N/A self assertRaises Exception N/A cs get /groups N/A N/A