Module Import alias Import alias Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BoolOpOr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad decorator_list decorator_list
N/A N/A etcd N/A unittest N/A urllib3 N/A json N/A N/A N/A mock N/A N/A N/A ImportError N/A unittest mock TestClientApiBase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self client N/A N/A etcd Client N/A _prepare_response N/A N/A self s d cluster_id N/A None N/A N/A N/A isinstance d dict N/A N/A data N/A N/A N/A N/A json dumps d encode utf-8 N/A N/A data N/A N/A d encode utf-8 N/A r N/A N/A N/A mock create_autospec N/A N/A urllib3 response HTTPResponse N/A N/A r status s N/A N/A r data data N/A N/A N/A r getheader return_value N/A cluster_id abcd1234 N/A r N/A _mock_api N/A N/A self status d cluster_id N/A None N/A N/A resp N/A N/A self _prepare_response status d cluster_id cluster_id N/A N/A N/A self client api_execute N/A N/A mock MagicMock return_value resp N/A _mock_exception N/A N/A self exc msg N/A N/A N/A N/A N/A self client api_execute N/A N/A mock Mock side_effect N/A exc msg N/A N/A