Module ImportFrom alias ImportFrom alias ImportFrom alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Import alias Import alias Import alias Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assert CompareEq Str NameLoad decorator_list FunctionDef arguments args defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assert CompareEq Str NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assert CompareEq Str NameLoad decorator_list FunctionDef arguments args defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assert CompareEq Str NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assert CompareEq Str NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assert CompareEq Str NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assert CompareEq Str NameLoad decorator_list FunctionDef arguments args defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str Assert AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assert AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword Num keyword Num Assert AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Call NameLoad Num Str Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad BinOpSub Call NameLoad NameLoad Num Assert CompareLt Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Pass Assert AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareLt AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Call NameLoad Num Str Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad BinOpSub Call NameLoad NameLoad Num Assert CompareLt Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Pass Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Pass Assert AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareLt AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign NameStore Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str NameLoad Num NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Call NameLoad Call NameLoad Str NameLoad Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr Str NameLoad Num NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str NameLoad Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameLoad Num NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Call NameLoad Call NameLoad Str Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Call NameLoad Num Str Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Str Num NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad BinOpSub Call NameLoad NameLoad Num Assert CompareLt Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr Str Str Num NameStore body Pass Assert AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareLt AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Num Str Call NameLoad Num Str Call NameLoad Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert CompareEq NameLoad TupleLoad Str Str Assert CompareEq SubscriptLoad NameLoad Index Str Dict Str Str Assert CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Assert CompareEq NameLoad Str Assert AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad BinOpSub Call NameLoad NameLoad Num Assert CompareLt Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr Str Dict Str Str NameStore body Pass Assert AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareLt AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Num Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Num Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Num Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Num Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Num Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assert Call AttributeLoad NameLoad attr Str ListLoad Str Assert Call AttributeLoad NameLoad attr Str ListLoad Str Assert Call AttributeLoad NameLoad attr Str ListLoad Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str ListLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str ListLoad Str decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Assert AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq NameLoad TupleLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num BinOpPow Num Num BinOpPow Num Num Assert CompareEq NameLoad BinOpMult Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num BinOpPow Num Num BinOpPow Num Num Assert CompareEq NameLoad BinOpMult Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num BinOpPow Num Num BinOpPow Num Num Assert CompareEq NameLoad BinOpMult Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num BinOpPow Num Num BinOpPow Num Num Assert CompareEq NameLoad BinOpMult Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Str Str Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Str Str Str Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Str Str Str decorator_list
N/A __future__ print_function __future__ unicode_literals array array N/A io N/A N/A unittest mock N/A N/A N/A ImportError N/A N/A mock N/A os N/A pytest N/A tempfile N/A time N/A N/A N/A urllib.parse urlparse N/A N/A N/A ImportError N/A N/A urlparse N/A urllib3 tdclient api tdclient version tdclient.test.test_helper * setup_function N/A N/A function N/A N/A N/A N/A unset_environ N/A test_apikey_success N/A N/A N/A N/A N/A td N/A N/A api API apikey N/A N/A N/A td apikey apikey N/A test_apikey_from_environ N/A N/A N/A N/A N/A N/A N/A os environ N/A TD_API_KEY APIKEY N/A td N/A N/A api API N/A N/A N/A td apikey APIKEY N/A test_apikey_failure N/A N/A N/A N/A N/A N/A N/A pytest raises ValueError error N/A N/A N/A N/A api API N/A N/A N/A N/A error value args N/A no API key given N/A test_default_user_agent N/A N/A N/A N/A N/A td N/A N/A api API apikey N/A N/A N/A N/A td _user_agent startswith N/A TD-Client-Python/%s N/A version __version__ N/A test_user_agent_from_keyword N/A N/A N/A N/A N/A td N/A N/A api API apikey user_agent user_agent N/A N/A N/A td _user_agent user_agent N/A test_default_endpoint N/A N/A N/A N/A N/A td N/A N/A api API apikey N/A N/A isinstance N/A td http N/A urllib3 PoolManager N/A N/A url headers N/A N/A td build_request N/A N/A https://api.treasuredata.com/ url N/A test_endpoint_from_environ N/A N/A N/A N/A N/A N/A N/A os environ N/A TD_API_SERVER http://api1.example.com N/A td N/A N/A api API apikey N/A N/A isinstance N/A td http N/A urllib3 PoolManager N/A N/A url headers N/A N/A td build_request N/A N/A http://api1.example.com url N/A test_endpoint_from_keyword N/A N/A N/A N/A N/A td N/A N/A api API apikey endpoint http://api2.example.com N/A N/A isinstance N/A td http N/A urllib3 PoolManager N/A N/A url headers N/A N/A td build_request N/A N/A http://api2.example.com url N/A test_endpoint_prefer_keyword N/A N/A N/A N/A N/A N/A N/A os environ N/A TD_API_SERVER http://api1.example.com N/A td N/A N/A api API apikey endpoint http://api2.example.com N/A N/A isinstance N/A td http N/A urllib3 PoolManager N/A N/A url headers N/A N/A td build_request N/A N/A http://api2.example.com url N/A test_http_endpoint_with_custom_port N/A N/A N/A N/A N/A td N/A N/A api API apikey endpoint http://api.example.com:8080/ N/A N/A isinstance N/A td http N/A urllib3 PoolManager N/A N/A url headers N/A N/A td build_request N/A N/A http://api.example.com:8080/ url N/A test_https_endpoint N/A N/A N/A N/A N/A td N/A N/A api API apikey endpoint https://api.example.com/ N/A N/A isinstance N/A td http N/A urllib3 PoolManager N/A N/A url headers N/A N/A td build_request N/A N/A https://api.example.com/ url N/A test_https_endpoint_with_custom_path N/A N/A N/A N/A N/A td N/A N/A api API apikey endpoint https://api.example.com/v1/ N/A N/A isinstance N/A td http N/A urllib3 PoolManager N/A N/A url headers N/A N/A td build_request N/A N/A https://api.example.com/v1/ url N/A test_http_proxy_from_environ N/A N/A N/A N/A N/A N/A N/A os environ N/A HTTP_PROXY proxy1.example.com:8080 N/A td N/A N/A api API apikey N/A N/A isinstance N/A td http N/A urllib3 ProxyManager N/A N/A N/A N/A N/A td http proxy url http://proxy1.example.com:8080 N/A test_http_proxy_from_keyword N/A N/A N/A N/A N/A td N/A N/A api API apikey http_proxy proxy2.example.com:8080 N/A N/A isinstance N/A td http N/A urllib3 ProxyManager N/A N/A N/A N/A N/A td http proxy url http://proxy2.example.com:8080 N/A test_http_proxy_prefer_keyword N/A N/A N/A N/A N/A N/A N/A os environ N/A HTTP_PROXY proxy1.example.com:8080 N/A td N/A N/A api API apikey http_proxy proxy2.example.com:8080 N/A N/A isinstance N/A td http N/A urllib3 ProxyManager N/A N/A N/A N/A N/A td http proxy url http://proxy2.example.com:8080 N/A test_http_proxy_with_scheme N/A N/A N/A N/A N/A N/A N/A os environ N/A HTTP_PROXY http://proxy1.example.com:8080/ N/A td N/A N/A api API apikey N/A N/A isinstance N/A td http N/A urllib3 ProxyManager N/A N/A N/A N/A N/A td http proxy url http://proxy1.example.com:8080/ N/A test_no_timeout N/A N/A N/A N/A N/A N/A N/A mock patch tdclient.api.urllib3 urllib3 N/A N/A td N/A N/A api API apikey N/A N/A N/A urllib3 PoolManager called N/A N/A args kwargs N/A N/A urllib3 PoolManager call_args N/A N/A N/A kwargs N/A timeout 60 N/A test_timeout N/A N/A N/A N/A N/A N/A N/A mock patch tdclient.api.urllib3 urllib3 N/A N/A td N/A N/A api API apikey timeout 12345 N/A N/A N/A urllib3 PoolManager called N/A N/A args kwargs N/A N/A urllib3 PoolManager call_args N/A N/A N/A kwargs N/A timeout 12345 N/A test_connect_timeout N/A N/A N/A N/A N/A N/A N/A mock patch tdclient.api.urllib3 urllib3 N/A N/A td N/A N/A api API apikey connect_timeout 1 read_timeout 2 send_timeout 4 N/A N/A N/A urllib3 PoolManager called N/A N/A args kwargs N/A N/A urllib3 PoolManager call_args N/A N/A N/A kwargs N/A timeout 4 N/A test_get_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 200 body N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A td get /foo N/A bar baz response N/A N/A N/A args kwargs N/A N/A N/A td http request call_args N/A N/A args N/A GET https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A fields N/A bar baz N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A accept-encoding authorization date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body body N/A N/A N/A t_sleep called N/A test_get_error N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 404 not found N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A td get /foo N/A bar baz response N/A N/A N/A args kwargs N/A N/A N/A td http request call_args N/A N/A args N/A GET https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A fields N/A bar baz N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A accept-encoding authorization date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 404 N/A N/A body not found N/A N/A N/A t_sleep called N/A test_get_retry_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 500 failure1 N/A make_raw_response 503 failure2 N/A make_raw_response 200 success1 N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A td get /foo N/A bar baz response N/A N/A N/A args kwargs N/A N/A N/A td http request call_args N/A N/A args N/A GET https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A fields N/A bar baz N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A accept-encoding authorization date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body success1 N/A N/A t_sleep called N/A sleeps N/A N/A args N/A 0 N/A N/A args kwargs N/A t_sleep call_args_list N/A N/A N/A len sleeps N/A N/A len responses 1 N/A N/A N/A sum sleeps N/A td _max_cumul_retry_delay N/A test_get_failure N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A N/A N/A N/A td http request return_value N/A make_raw_response 500 failure N/A N/A N/A pytest raises N/A api APIError error N/A N/A N/A N/A td get /foo N/A bar baz response N/A N/A N/A N/A t_sleep called N/A sleeps N/A N/A args N/A 0 N/A N/A args kwargs N/A t_sleep call_args_list N/A N/A N/A td _max_cumul_retry_delay N/A sum sleeps N/A test_post_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 200 body N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A td post /foo N/A bar baz response N/A N/A N/A args kwargs N/A N/A N/A td http request call_args N/A N/A args N/A POST https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A fields N/A bar baz N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body body N/A N/A N/A t_sleep called N/A test_post_retry_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY retry_post_requests True N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 500 failure1 N/A make_raw_response 503 failure2 N/A make_raw_response 200 success1 N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A td post /foo N/A bar baz response N/A N/A N/A args kwargs N/A N/A N/A td http request call_args N/A N/A args N/A POST https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A fields N/A bar baz N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body success1 N/A N/A t_sleep called N/A sleeps N/A N/A args N/A 0 N/A N/A args kwargs N/A t_sleep call_args_list N/A N/A N/A len sleeps N/A N/A len responses 1 N/A N/A N/A sum sleeps N/A td _max_cumul_retry_delay N/A test_post_never_retry N/A N/A N/A N/A N/A td N/A N/A api API APIKEY retry_post_requests False N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 500 failure N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A pytest raises N/A api APIError error N/A N/A N/A N/A td post /foo N/A bar baz response N/A N/A N/A N/A N/A t_sleep called N/A test_post_failure N/A N/A N/A N/A N/A td N/A N/A api API APIKEY retry_post_requests True N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A N/A N/A N/A td http request return_value N/A make_raw_response 500 failure N/A N/A N/A pytest raises N/A api APIError error N/A N/A N/A N/A td post /foo N/A bar baz response N/A N/A N/A N/A t_sleep called N/A sleeps N/A N/A args N/A 0 N/A N/A args kwargs N/A t_sleep call_args_list N/A N/A N/A td _max_cumul_retry_delay N/A sum sleeps N/A test_put_bytes_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http urlopen N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 200 response body N/A bytes_or_stream request body N/A N/A N/A N/A td http urlopen side_effect responses N/A N/A N/A td put /foo bytes_or_stream 12 response N/A N/A N/A args kwargs N/A N/A N/A td http urlopen call_args N/A N/A args N/A PUT https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A body N/A array N/A str b bytes_or_stream N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization content-length content-type date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body response body N/A N/A N/A t_sleep called N/A test_put_file_with_fileno_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http urlopen N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 200 response body N/A N/A N/A N/A td http urlopen side_effect responses N/A bytes_or_stream N/A N/A tempfile TemporaryFile N/A N/A N/A bytes_or_stream write request body N/A N/A N/A bytes_or_stream seek 0 N/A N/A N/A td put /foo bytes_or_stream 12 response N/A N/A N/A args kwargs N/A N/A N/A td http urlopen call_args N/A N/A args N/A PUT https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A body bytes_or_stream N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization content-length content-type date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body response body N/A N/A N/A t_sleep called N/A test_put_file_without_fileno_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http urlopen N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 200 response body N/A N/A N/A N/A td http urlopen side_effect responses N/A bytes_or_stream N/A N/A io BytesIO request body N/A N/A N/A td put /foo bytes_or_stream 12 response N/A N/A N/A args kwargs N/A N/A N/A td http urlopen call_args N/A N/A args N/A PUT https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A body N/A array N/A str b N/A N/A bytes_or_stream getvalue N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization content-length content-type date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body response body N/A N/A N/A t_sleep called N/A test_put_retry_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http urlopen N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 500 failure1 N/A make_raw_response 503 failure2 N/A make_raw_response 200 success1 N/A N/A N/A N/A td http urlopen side_effect responses N/A N/A N/A td put /foo body 7 response N/A N/A N/A args kwargs N/A N/A N/A td http urlopen call_args N/A N/A args N/A PUT https://api.treasuredata.com/foo N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization content-length content-type date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body success1 N/A N/A t_sleep called N/A sleeps N/A N/A args N/A 0 N/A N/A args kwargs N/A t_sleep call_args_list N/A N/A N/A len sleeps N/A N/A len responses 1 N/A N/A N/A sum sleeps N/A td _max_cumul_retry_delay N/A test_put_failure N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http urlopen N/A N/A mock MagicMock N/A N/A N/A N/A td http urlopen return_value N/A make_raw_response 500 error N/A N/A N/A pytest raises N/A api APIError error N/A N/A N/A N/A td put /foo body 7 response N/A N/A N/A N/A t_sleep called N/A sleeps N/A N/A args N/A 0 N/A N/A args kwargs N/A t_sleep call_args_list N/A N/A N/A td _max_cumul_retry_delay N/A sum sleeps N/A test_delete_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 200 body N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A td delete /foo N/A bar baz response N/A N/A N/A args kwargs N/A N/A N/A td http request call_args N/A N/A args N/A DELETE https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A fields N/A bar baz N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body body N/A N/A N/A t_sleep called N/A test_delete_error N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 404 not found N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A td delete /foo N/A bar baz response N/A N/A N/A args kwargs N/A N/A N/A td http request call_args N/A N/A args N/A DELETE https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A fields N/A bar baz N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 404 N/A N/A body not found N/A N/A N/A t_sleep called N/A test_delete_retry_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A responses N/A N/A make_raw_response 500 failure1 N/A make_raw_response 503 failure2 N/A make_raw_response 200 success1 N/A N/A N/A N/A td http request side_effect responses N/A N/A N/A td delete /foo N/A bar baz response N/A N/A N/A args kwargs N/A N/A N/A td http request call_args N/A N/A args N/A DELETE https://api.treasuredata.com/foo N/A N/A N/A kwargs N/A fields N/A bar baz N/A N/A N/A sorted N/A N/A N/A kwargs N/A headers keys N/A authorization date user-agent N/A N/A status body N/A N/A response status N/A N/A response read N/A N/A status 200 N/A N/A body success1 N/A N/A t_sleep called N/A sleeps N/A N/A args N/A 0 N/A N/A args kwargs N/A t_sleep call_args_list N/A N/A N/A len sleeps N/A N/A len responses 1 N/A N/A N/A sum sleeps N/A td _max_cumul_retry_delay N/A test_delete_failure N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A mock patch time.sleep t_sleep N/A N/A N/A N/A td http request N/A N/A mock MagicMock N/A N/A N/A N/A td http request return_value N/A make_raw_response 500 failure N/A N/A N/A pytest raises N/A api APIError error N/A N/A N/A N/A td delete /foo N/A bar baz response N/A N/A N/A N/A t_sleep called N/A sleeps N/A N/A args N/A 0 N/A N/A args kwargs N/A t_sleep call_args_list N/A N/A N/A td _max_cumul_retry_delay N/A sum sleeps N/A test_raise_error_401 N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A pytest raises N/A api AuthError error N/A N/A N/A N/A td raise_error msg N/A make_raw_response 401 unauthorized body N/A test_raise_error_403 N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A pytest raises N/A api ForbiddenError error N/A N/A N/A N/A td raise_error msg N/A make_raw_response 403 forbidden body N/A test_raise_error_404 N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A pytest raises N/A api NotFoundError error N/A N/A N/A N/A td raise_error msg N/A make_raw_response 404 not found body N/A test_raise_error_409 N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A pytest raises N/A api AlreadyExistsError error N/A N/A N/A N/A td raise_error msg N/A make_raw_response 409 conflict body N/A test_raise_error_4xx N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A pytest raises N/A api APIError error N/A N/A N/A N/A td raise_error msg N/A make_raw_response 402 payment required body N/A test_checked_json_success N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A td checked_json {"foo": "FOO"} N/A foo N/A N/A N/A td checked_json {"foo": "FOO", "bar": "BAR", "baz": "BAZ"} N/A foo N/A N/A N/A td checked_json {"foo": "FOO", "bar": "BAR", "baz": "BAZ"} N/A foo bar N/A test_checked_json_load_error N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A pytest raises N/A api APIError error N/A N/A N/A N/A td checked_json {invalid} N/A N/A test_checked_json_field_error N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A N/A N/A pytest raises N/A api APIError error N/A N/A N/A N/A td checked_json {} N/A foo N/A test_sleep_compat N/A N/A N/A N/A N/A N/A N/A mock patch tdclient.api.time time N/A N/A td N/A N/A api API apikey N/A N/A N/A td sleep 600 N/A N/A N/A time sleep called N/A N/A args kwargs N/A N/A time sleep call_args N/A N/A args N/A 600 N/A test_parsedate_compat N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A dt N/A N/A td parsedate 2013-11-01 16:48:41 -0700 N/A N/A N/A dt year 2013 N/A N/A N/A dt month 11 N/A N/A N/A dt day 1 N/A N/A N/A dt hour 16 N/A N/A N/A dt minute 48 N/A N/A N/A dt second 41 N/A offset N/A N/A dt utcoffset N/A total_seconds N/A N/A N/A N/A offset seconds N/A N/A N/A offset days 24 3600 N/A 10 6 N/A 10 6 N/A N/A total_seconds N/A -7 3600 N/A test_parsedate1 N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A dt N/A N/A td _parsedate 2013-11-01 16:48:41 -0700 %Y-%m-%d %H:%M:%S %z N/A N/A N/A dt year 2013 N/A N/A N/A dt month 11 N/A N/A N/A dt day 1 N/A N/A N/A dt hour 16 N/A N/A N/A dt minute 48 N/A N/A N/A dt second 41 N/A offset N/A N/A dt utcoffset N/A total_seconds N/A N/A N/A N/A offset seconds N/A N/A N/A offset days 24 3600 N/A 10 6 N/A 10 6 N/A N/A total_seconds N/A -7 3600 N/A test_parsedate2 N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A dt N/A N/A td _parsedate 2013-11-13 19:39:19 UTC %Y-%m-%d %H:%M:%S %Z N/A N/A N/A dt year 2013 N/A N/A N/A dt month 11 N/A N/A N/A dt day 13 N/A N/A N/A dt hour 19 N/A N/A N/A dt minute 39 N/A N/A N/A dt second 19 N/A offset N/A N/A dt utcoffset N/A total_seconds N/A N/A N/A N/A offset seconds N/A N/A N/A offset days 24 3600 N/A 10 6 N/A 10 6 N/A N/A total_seconds N/A 0 3600 N/A test_parsedate3 N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A dt N/A N/A td _parsedate Sun Jun 26 17:39:18 -0400 2011 %a %b %d %H:%M:%S %z %Y N/A N/A N/A dt year 2011 N/A N/A N/A dt month 6 N/A N/A N/A dt day 26 N/A N/A N/A dt hour 17 N/A N/A N/A dt minute 39 N/A N/A N/A dt second 18 N/A offset N/A N/A dt utcoffset N/A total_seconds N/A N/A N/A N/A offset seconds N/A N/A N/A offset days 24 3600 N/A 10 6 N/A 10 6 N/A N/A total_seconds N/A -4 3600 N/A test_get_or_else N/A N/A N/A N/A N/A td N/A N/A api API APIKEY N/A hashmap N/A foo FOO N/A N/A N/A N/A td get_or_else hashmap foo FOO N/A N/A N/A N/A td get_or_else hashmap foo abracadabra FOO N/A N/A N/A N/A td get_or_else hashmap bar None N/A N/A N/A N/A td get_or_else hashmap bar BAR BAR N/A