Module Import alias Import alias Import alias Import alias Import alias Import alias Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Pass decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Num TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad With Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list
N/A N/A re N/A sys N/A unittest N/A warnings N/A twitter N/A responses N/A N/A N/A warnings filterwarnings ignore category DeprecationWarning N/A DEF_URL_RE N/A N/A re compile https?://.*\.twitter.com/1\.1/.* ErrNull N/A object N/A N/A  Suppress output of tests while writing to stdout or stderr. This just
    takes in data and does nothing with it.
     write N/A N/A self data N/A N/A N/A N/A N/A RateLimitTests N/A N/A unittest TestCase N/A N/A  Tests for RateLimit object  setUp N/A N/A self N/A N/A N/A N/A self api N/A N/A twitter Api consumer_key test consumer_secret test access_token_key test access_token_secret test sleep_on_rate_limit False N/A N/A self base_url https://api.twitter.com/1.1 N/A N/A self _stderr N/A sys stderr N/A N/A sys stderr N/A ErrNull N/A tearDown N/A N/A self N/A N/A N/A N/A sys stderr N/A self _stderr N/A N/A testInitializeRateLimit N/A N/A self N/A N/A N/A N/A open testdata/ratelimit.json f N/A N/A resp_data N/A N/A f read N/A url N/A %s/application/rate_limit_status.json N/A N/A self api base_url N/A N/A N/A responses add N/A responses GET url body resp_data match_querystring True status 200 N/A N/A N/A N/A self api InitializeRateLimit N/A N/A N/A self assertTrue N/A N/A self api rate_limit N/A N/A self rate_limit None N/A N/A N/A self api sleep_on_rate_limit True N/A N/A N/A N/A self api InitializeRateLimit N/A N/A N/A self assertTrue N/A N/A self api rate_limit N/A N/A N/A self assertTrue N/A N/A self api sleep_on_rate_limit N/A N/A N/A responses add N/A responses GET url DEF_URL_RE body {} status 200 N/A N/A N/A N/A N/A N/A self api GetStatus status_id 1234 N/A N/A N/A N/A self api GetUser screen_name test N/A N/A N/A Exception N/A e N/A N/A N/A N/A self fail e N/A N/A responses activate testCheckRateLimit N/A N/A self N/A N/A N/A N/A open testdata/ratelimit.json f N/A N/A resp_data N/A N/A f read N/A url N/A %s/application/rate_limit_status.json N/A N/A self api base_url N/A N/A N/A responses add N/A responses GET url body resp_data match_querystring True status 200 N/A rt N/A N/A N/A self api CheckRateLimit https://api.twitter.com/1.1/help/privacy.json N/A N/A N/A self assertEqual N/A rt limit 15 N/A N/A N/A self assertEqual N/A rt remaining 15 N/A N/A N/A self assertEqual N/A rt reset 1452254278 N/A N/A responses activate N/A RateLimitMethodsTests N/A N/A unittest TestCase N/A N/A  Tests for RateLimit object  setUp N/A N/A self N/A N/A N/A N/A self api N/A N/A twitter Api consumer_key test consumer_secret test access_token_key test access_token_secret test sleep_on_rate_limit False N/A N/A self base_url https://api.twitter.com/1.1 N/A N/A self _stderr N/A sys stderr N/A N/A sys stderr N/A ErrNull N/A N/A open testdata/ratelimit.json f N/A N/A resp_data N/A N/A f read N/A url N/A %s/application/rate_limit_status.json N/A N/A self api base_url N/A N/A N/A responses add N/A responses GET url body resp_data match_querystring True status 200 N/A N/A N/A N/A self api InitializeRateLimit N/A N/A N/A self assertTrue N/A N/A self api rate_limit N/A N/A responses activate tearDown N/A N/A self N/A N/A N/A N/A sys stderr N/A self _stderr N/A N/A testGetRateLimit N/A N/A self N/A N/A N/A lim N/A N/A N/A N/A self api rate_limit get_limit /lists/members N/A N/A N/A self assertEqual N/A lim limit 180 N/A N/A N/A self assertEqual N/A lim remaining 180 N/A N/A N/A self assertEqual N/A lim reset 1452254278 N/A testNonStandardEndpointRateLimit N/A N/A self N/A N/A N/A lim N/A N/A N/A N/A self api rate_limit get_limit https://api.twitter.com/1.1/geo/id/312.json?skip_status=True N/A N/A N/A self assertEqual N/A lim limit 47 N/A lim N/A N/A N/A N/A self api rate_limit get_limit https://api.twitter.com/1.1/saved_searches/destroy/312.json N/A N/A N/A self assertEqual N/A lim limit 15 N/A lim N/A N/A N/A N/A self api rate_limit get_limit https://api.twitter.com/1.1/statuses/retweets/312.json?skip_status=True N/A N/A N/A self assertEqual N/A lim limit 23 N/A testSetRateLimit N/A N/A self N/A N/A N/A previous_limit N/A N/A N/A N/A self api rate_limit get_limit /lists/members N/A N/A N/A N/A N/A self api rate_limit set_limit url https://api.twitter.com/1.1/lists/members.json?skip_status=True limit N/A previous_limit limit remaining N/A N/A previous_limit remaining 1 reset N/A previous_limit reset N/A new_limit N/A N/A N/A N/A self api rate_limit get_limit /lists/members N/A N/A N/A self assertEqual N/A new_limit remaining N/A N/A previous_limit remaining 1 N/A testFamilyNotFound N/A N/A self N/A N/A N/A limit N/A N/A N/A N/A self api rate_limit get_limit /tests/test N/A N/A N/A self assertEqual N/A limit limit 15 N/A N/A N/A self assertEqual N/A limit remaining 15 N/A N/A N/A self assertEqual N/A limit reset 0 N/A testSetUnknownRateLimit N/A N/A self N/A N/A N/A N/A N/A N/A N/A self api rate_limit set_limit url https://api.twitter.com/1.1/not/a/real/endpoint.json limit 15 remaining 14 reset 100 N/A limit N/A N/A N/A N/A self api rate_limit get_limit url https://api.twitter.com/1.1/not/a/real/endpoint.json N/A N/A N/A self assertEqual N/A limit remaining 14 N/A N/A