Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign AttributeStore AttributeLoad NameLoad attr attr Str ClassDef bases NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str ListLoad TupleLoad Str Str Return Call NameLoad ListLoad Str decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Dict Str Str Str Str Str Str Raise Call NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Index Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Dict Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Yield Str decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list Call NameLoad Str decorator_list
N/A N/A unittest webtest TestApp mock patch bugsnag.wsgi.middleware BugsnagMiddleware six Iterator N/A bugsnag.notification N/A N/A N/A bugsnag configuration api_key 066f5ad3590596f9aa8d601ea89af845 SentinelError N/A RuntimeError N/A N/A N/A TestWSGI N/A N/A unittest TestCase N/A test_bugsnag_middleware_working N/A N/A self deliver N/A N/A BasicWorkingApp N/A N/A environ start_response N/A N/A N/A N/A start_response 200 OK N/A N/A Content-Type text/plain; charset=utf-8 N/A N/A iter N/A OK N/A N/A app N/A TestApp N/A BugsnagMiddleware BasicWorkingApp N/A resp N/A N/A app get / status 200 N/A N/A N/A self assertEqual N/A resp body OK N/A N/A N/A self assertEqual N/A deliver call_count 0 N/A N/A patch bugsnag.notification.deliver test_bugsnag_middleware_crash_on_start N/A N/A self deliver N/A N/A CrashOnStartApp N/A object N/A __init__ N/A N/A self environ start_response N/A N/A N/A N/A SentinelError oops N/A N/A N/A app N/A TestApp N/A BugsnagMiddleware CrashOnStartApp N/A N/A N/A self assertRaises SentinelError N/A N/A N/A N/A N/A N/A app get /beans N/A N/A N/A self assertEqual N/A deliver call_count 1 N/A payload N/A N/A N/A deliver call_args N/A 0 N/A 0 N/A event N/A N/A payload N/A events N/A 0 N/A N/A N/A self assertEqual N/A event N/A context GET /beans N/A N/A N/A self assertEqual N/A N/A N/A event N/A metaData N/A environment N/A PATH_INFO /beans N/A N/A patch bugsnag.notification.deliver test_bugsnag_middleware_crash_on_iter N/A N/A self deliver N/A N/A CrashOnIterApp N/A Iterator N/A __init__ N/A N/A self environ start_response N/A N/A N/A N/A __iter__ N/A N/A self N/A N/A N/A self N/A __next__ N/A N/A self N/A N/A N/A N/A SentinelError oops N/A N/A N/A app N/A TestApp N/A BugsnagMiddleware CrashOnIterApp N/A N/A N/A self assertRaises SentinelError N/A N/A N/A N/A N/A N/A app get /beans N/A N/A N/A self assertEqual N/A deliver call_count 1 N/A payload N/A N/A N/A deliver call_args N/A 0 N/A 0 N/A environ N/A N/A N/A N/A payload N/A events N/A 0 N/A metaData N/A environment N/A N/A N/A self assertEqual N/A environ N/A PATH_INFO /beans N/A N/A patch bugsnag.notification.deliver test_bugsnag_middleware_crash_on_close N/A N/A self deliver N/A N/A CrashOnCloseApp N/A Iterator N/A __init__ N/A N/A self environ start_response N/A N/A N/A N/A __iter__ N/A N/A self N/A N/A N/A self N/A __next__ N/A N/A self N/A N/A N/A N/A StopIteration N/A close N/A N/A self N/A N/A N/A N/A SentinelError oops N/A N/A N/A app N/A TestApp N/A BugsnagMiddleware CrashOnCloseApp N/A N/A N/A self assertRaises SentinelError N/A N/A N/A N/A N/A N/A app get /beans N/A N/A N/A self assertEqual N/A deliver call_count 1 N/A payload N/A N/A N/A deliver call_args N/A 0 N/A 0 N/A environ N/A N/A N/A N/A payload N/A events N/A 0 N/A metaData N/A environment N/A N/A N/A self assertEqual N/A environ N/A PATH_INFO /beans N/A N/A patch bugsnag.notification.deliver test_bugsnag_middleware_respects_user_id N/A N/A self deliver N/A N/A CrashAfterSettingUserId N/A object N/A __init__ N/A N/A self environ start_response N/A N/A N/A N/A N/A bugsnag configure_request user N/A id email name 5 me@cirw.in conrad N/A N/A SentinelError oops N/A N/A N/A app N/A TestApp N/A BugsnagMiddleware CrashAfterSettingUserId N/A N/A N/A self assertRaises SentinelError N/A N/A N/A N/A N/A N/A app get /beans N/A N/A N/A self assertEqual N/A deliver call_count 1 N/A payload N/A N/A N/A deliver call_args N/A 0 N/A 0 N/A N/A N/A self assertEqual N/A N/A N/A N/A payload N/A events N/A 0 N/A user N/A id 5 N/A N/A patch bugsnag.notification.deliver test_bugsnag_middleware_respects_meta_data N/A N/A self deliver N/A N/A CrashAfterSettingMetaData N/A object N/A __init__ N/A N/A self environ start_response N/A N/A N/A N/A N/A bugsnag configure_request meta_data N/A account N/A paying True N/A __iter__ N/A N/A self N/A N/A N/A N/A SentinelError oops N/A N/A N/A app N/A TestApp N/A BugsnagMiddleware CrashAfterSettingMetaData N/A N/A N/A self assertRaises SentinelError N/A N/A N/A N/A N/A N/A app get /beans N/A N/A N/A self assertEqual N/A deliver call_count 1 N/A payload N/A N/A N/A deliver call_args N/A 0 N/A 0 N/A event N/A N/A payload N/A events N/A 0 N/A N/A N/A self assertEqual N/A N/A event N/A metaData N/A account N/A paying True N/A N/A patch bugsnag.notification.deliver test_bugsnag_middleware_closes_iterables N/A N/A self deliver N/A N/A CrashOnCloseIterable N/A object N/A __init__ N/A N/A self environ start_response N/A N/A N/A N/A start_response 200 OK N/A N/A Content-Type text/plain; charset=utf-8 N/A __iter__ N/A N/A self N/A N/A N/A N/A OK N/A close N/A N/A self N/A N/A N/A N/A SentinelError oops N/A N/A N/A app N/A TestApp N/A BugsnagMiddleware CrashOnCloseIterable N/A N/A N/A self assertRaises SentinelError N/A N/A N/A N/A N/A N/A app get /beans N/A N/A N/A self assertEqual N/A deliver call_count 1 N/A payload N/A N/A N/A deliver call_args N/A 0 N/A 0 N/A environ N/A N/A N/A N/A payload N/A events N/A 0 N/A metaData N/A environment N/A N/A N/A self assertEqual N/A environ N/A PATH_INFO /beans N/A N/A patch bugsnag.notification.deliver N/A