Module Import alias Import alias ImportFrom alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str decorator_list 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 defaults body Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str ListLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Return Assert NameLoad Str decorator_list decorator_list
N/A N/A mock N/A sys tornado web N/A N/A N/A unittest2 unittest N/A N/A N/A ImportError N/A N/A unittest N/A N/A N/A N/A sys path insert 0 .. tinman whitelist RequestMock N/A object N/A __init__ N/A N/A self remote_ip N/A N/A N/A N/A self application N/A N/A mock Mock N/A N/A N/A self application settings N/A dict N/A N/A self request N/A N/A mock Mock N/A N/A N/A self request remote_ip remote_ip N/A whitelisted_method N/A N/A self N/A N/A N/A True N/A N/A whitelist whitelisted whitelisted_specific N/A N/A self N/A N/A N/A True N/A N/A N/A whitelist whitelisted 11.12.13.0/24 N/A WhitelistTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self request N/A N/A self _get_request N/A tearDown N/A N/A self N/A N/A N/A N/A self request N/A _get_request N/A N/A self ip_address N/A 1.2.3.4 N/A N/A request N/A RequestMock ip_address N/A N/A N/A N/A request application settings N/A whitelist N/A 1.2.3.0/24 N/A request N/A test_empty_whitelist N/A N/A self N/A N/A N/A request N/A RequestMock 1.2.3.4 N/A N/A N/A self assertRaises ValueError N/A request whitelisted_method ValueError not raised for empty whitelist N/A test_whitelisted_ip N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A self request whitelisted_method Whitelisted IP address did not pass N/A test_non_whitelisted_ip N/A N/A self N/A N/A N/A request N/A N/A self _get_request 2.2.3.4 N/A N/A N/A self assertRaises N/A web HTTPError N/A request whitelisted_method whitelist did not raise whitelist.HTTPError N/A test_specific_whitelisted_ip N/A N/A self N/A N/A N/A request N/A N/A self _get_request 11.12.13.14 N/A N/A N/A self assertTrue N/A N/A request whitelisted_specific Whitelisted IP address did not pass N/A test_specific_non_whitelisted_ip N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A web HTTPError N/A N/A self request whitelisted_specific whitelist did not raise whitelist.HTTPError N/A test_invalid_whitelisted_ip N/A N/A self N/A N/A N/A N/A whitelisted_invalid N/A N/A self N/A N/A N/A True N/A N/A N/A whitelist whitelisted 1234 N/A N/A N/A ValueError N/A N/A N/A False invalid specified whitelist did not raise ValueError N/A N/A