Module Expr Str Import alias Import alias Import alias ImportFrom alias Import alias Import alias ImportFrom alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body With Call NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign TupleStore NameStore NameStore TupleLoad Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Str Expr ListComp Call AttributeLoad NameLoad attr comprehension NameStore ListLoad NameLoad NameLoad Expr ListComp Call AttributeLoad NameLoad attr Num comprehension NameStore ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad Call NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Num
N/A N/A 
Test that classes for representing the adsws-api specific data structures
defined in core.py
 N/A unittest N/A requests N/A os tempfile NamedTemporaryFile N/A ads.base N/A ads.config ads.base BaseQuery APIResponse mocks MockApiResponse TestApiResponse N/A N/A unittest TestCase N/A N/A 
    test the base Api response class
     setUp N/A N/A self N/A N/A N/A N/A MockApiResponse http://api.unittest N/A N/A N/A self APIResponse N/A APIResponse N/A N/A N/A self APIResponse response N/A N/A requests get http://api.unittest N/A test_get_ratelimits N/A N/A self N/A N/A N/A 
        the get_ratelimit method should return the X-RateLimit headers in
        a dictionary
         N/A limits N/A N/A N/A self APIResponse get_ratelimits N/A N/A N/A self assertEqual N/A limits N/A limit 400 N/A N/A N/A self assertEqual N/A limits N/A remaining 397 N/A N/A N/A self assertEqual N/A limits N/A reset 1436313600 N/A N/A TestBaseQuery N/A N/A unittest TestCase N/A N/A 
    Test the BaseQuery object
     test_token N/A N/A self N/A N/A N/A 
        the token should be set in the following order:
        - (first in list) environmental variables defined in TOKEN_ENVIRON_VARS
        - (first in list) files on disk defined in TOKEN_FILES
        - ads.config.token
         reset_token N/A N/A N/A N/A N/A N/A bq token None N/A N/A N/A N/A ads base TOKEN_ENVIRON_VARS N/A TOKEN_1 TOKEN_2 N/A N/A N/A os environ N/A TOKEN_1 tok1 N/A N/A N/A os environ N/A TOKEN_2 tok2 N/A N/A tf1 tf2 N/A N/A NamedTemporaryFile N/A NamedTemporaryFile N/A N/A N/A tf1 write N/A N/A tok3
 encode utf-8 N/A N/A N/A tf2 write N/A N/A  tok4  encode utf-8 N/A N/A N/A N/A f flush N/A f N/A tf1 tf2 N/A N/A N/A N/A f seek 0 N/A f N/A tf1 tf2 N/A N/A N/A ads base TOKEN_FILES N/A N/A tf1 name N/A tf2 name N/A bq N/A BaseQuery N/A N/A N/A self assertEqual N/A bq token tok1 N/A N/A reset_token N/A N/A N/A os environ N/A TOKEN_1 N/A N/A N/A self assertEqual N/A bq token tok2 N/A N/A reset_token N/A N/A N/A os environ N/A TOKEN_2 N/A N/A N/A self assertEqual N/A bq token tok3 N/A N/A reset_token N/A N/A N/A tf1 close N/A N/A N/A self assertEqual N/A bq token tok4 N/A N/A reset_token N/A N/A N/A tf2 close N/A N/A N/A self assertEqual N/A bq token None N/A N/A N/A ads config token tok5 N/A N/A N/A self assertEqual N/A N/A BaseQuery token tok5 N/A test_headers N/A N/A self N/A N/A N/A 
        basequery's session object should have pre-defined headers
         N/A hdrs N/A N/A N/A BaseQuery session headers N/A N/A N/A self assertEqual N/A hdrs N/A Content-Type application/json N/A N/A N/A self assertIn ads-api-client N/A hdrs N/A User-Agent N/A N/A N/A self assertIn Bearer N/A hdrs N/A Authorization N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main verbosity 2