Module ImportFrom alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr TryExcept body ImportFrom alias alias Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler type NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str TupleLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore TupleLoad Num Num While CompareNotEq NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Print Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A eve.tests TestBase N/A time TestRateLimit N/A TestBase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestRateLimit self setUp N/A N/A redis Redis ConnectionError N/A N/A N/A self app redis N/A Redis N/A N/A N/A N/A N/A N/A N/A self app redis flushdb N/A N/A N/A ConnectionError N/A N/A N/A N/A self app redis None N/A N/A N/A ImportError N/A N/A N/A N/A self app redis None N/A N/A N/A self app redis N/A N/A N/A N/A N/A self app config N/A RATE_LIMIT_GET N/A 1 1 N/A test_ratelimit_home N/A N/A self N/A N/A N/A N/A N/A self get_ratelimit / N/A test_ratelimit_resource N/A N/A self N/A N/A N/A N/A N/A self get_ratelimit N/A self known_resource_url N/A test_ratelimit_item N/A N/A self N/A N/A N/A N/A N/A self get_ratelimit N/A self item_id_url N/A test_noratelimits N/A N/A self N/A N/A N/A N/A N/A N/A self app config N/A RATE_LIMIT_GET None N/A N/A N/A self app redis N/A N/A N/A N/A N/A N/A self app redis flushdb N/A r N/A N/A N/A self test_client get / N/A N/A N/A self assert200 N/A r status_code N/A N/A N/A self assertTrue N/A X-RateLimit-Remaining N/A r headers N/A N/A N/A self assertTrue N/A X-RateLimit-Limit N/A r headers N/A N/A N/A self assertTrue N/A X-RateLimit-Reset N/A r headers N/A get_ratelimit N/A N/A self url N/A N/A N/A N/A N/A self app redis N/A N/A N/A t1 t2 N/A 1 2 N/A N/A t1 t2 N/A N/A t1 N/A int N/A N/A time time N/A r1 N/A N/A N/A self test_client get url N/A t2 N/A int N/A N/A time time N/A r2 N/A N/A N/A self test_client get url N/A N/A t1 t2 N/A N/A N/A N/A time sleep 1 N/A N/A N/A self assertRateLimit r1 N/A N/A N/A self assertEqual N/A r2 status_code 429 N/A N/A N/A self assertTrue N/A Rate limit exceeded N/A N/A r2 get_data N/A N/A N/A time sleep 1 N/A N/A N/A self assertRateLimit N/A N/A N/A self test_client get url N/A N/A Skipped. Needs a running redis-server and 'pip install redis' N/A assertRateLimit N/A N/A self r N/A N/A N/A N/A N/A self assertTrue N/A X-RateLimit-Remaining N/A r headers N/A N/A N/A self assertEqual N/A N/A r headers N/A X-RateLimit-Remaining 0 N/A N/A N/A self assertTrue N/A X-RateLimit-Limit N/A r headers N/A N/A N/A self assertEqual N/A N/A r headers N/A X-RateLimit-Limit 1 N/A N/A N/A self assertTrue N/A X-RateLimit-Reset N/A r headers N/A N/A