Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Dict keyword Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore ListLoad With Call AttributeLoad NameLoad attr NameStore body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr NameStore body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Raise Call NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Dict Str Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list
N/A N/A random N/A fixtures N/A mock N/A six N/A testtools sahara context sahara exceptions ex N/A rnd N/A N/A random Random ContextTest N/A N/A testtools TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ContextTest self setUp N/A N/A N/A self useFixture N/A N/A fixtures FakeLogger sahara N/A ctx N/A N/A context Context test_user tenant_1 test_auth_token N/A remote_semaphore 123 N/A N/A N/A context set_ctx ctx N/A _add_element N/A N/A self lst i N/A N/A N/A N/A N/A context sleep N/A N/A rnd uniform 0 0.1 N/A N/A N/A lst append i N/A _raise_test_exc N/A N/A self exc_msg N/A N/A N/A N/A TestException exc_msg N/A test_thread_group_waits_threads N/A N/A self N/A N/A N/A _ N/A N/A N/A six moves range 5 N/A N/A lst N/A N/A N/A N/A context ThreadGroup tg N/A N/A i N/A N/A N/A six moves range 400 N/A N/A N/A N/A tg spawn N/A add %i i N/A self _add_element lst i N/A N/A N/A self assertEqual 400 N/A len lst N/A test_thread_group_waits_threads_if_spawning_exception N/A N/A self N/A N/A N/A lst N/A N/A N/A N/A testtools ExpectedException RuntimeError N/A N/A N/A N/A context ThreadGroup tg N/A N/A i N/A N/A N/A six moves range 400 N/A N/A N/A N/A tg spawn N/A add %i i N/A self _add_element lst i N/A N/A RuntimeError N/A N/A N/A self assertEqual 400 N/A len lst N/A test_thread_group_waits_threads_if_child_exception N/A N/A self N/A N/A N/A lst N/A N/A N/A N/A testtools ExpectedException N/A ex ThreadException N/A N/A N/A N/A context ThreadGroup tg N/A N/A N/A N/A tg spawn raiser N/A self _raise_test_exc exc N/A i N/A N/A N/A six moves range 400 N/A N/A N/A N/A tg spawn N/A add %i i N/A self _add_element lst i N/A N/A N/A self assertEqual 400 N/A len lst N/A test_thread_group_handles_spawning_exception N/A N/A self N/A N/A N/A N/A N/A testtools ExpectedException TestException N/A N/A N/A N/A context ThreadGroup N/A N/A N/A TestException N/A test_thread_group_handles_child_exception N/A N/A self N/A N/A N/A N/A N/A N/A N/A context ThreadGroup tg N/A N/A N/A N/A tg spawn raiser1 N/A self _raise_test_exc exc1 N/A N/A N/A N/A ex ThreadException N/A te N/A N/A N/A N/A self assertIn exc1 N/A N/A six text_type te N/A N/A N/A self assertIn raiser1 N/A N/A six text_type te N/A test_thread_group_prefers_spawning_exception N/A N/A self N/A N/A N/A N/A N/A testtools ExpectedException RuntimeError N/A N/A N/A N/A context ThreadGroup tg N/A N/A N/A N/A tg spawn raiser1 N/A self _raise_test_exc exc1 N/A N/A RuntimeError N/A test_wrapper_does_not_set_exception N/A N/A self N/A N/A N/A func N/A N/A mock MagicMock N/A tg N/A N/A mock MagicMock exc None failed_thread None N/A N/A N/A context _wrapper None test thread tg func N/A N/A N/A self assertIsNone N/A tg exc N/A N/A N/A self assertIsNone N/A tg failed_thread N/A test_wrapper_catches_base_exception N/A N/A self N/A N/A N/A func N/A N/A mock MagicMock N/A N/A func side_effect N/A BaseException N/A tg N/A N/A mock MagicMock exc None failed_thread None N/A N/A N/A context _wrapper None test thread tg func N/A N/A N/A self assertIsNotNone N/A tg exc N/A N/A N/A self assertEqual test thread N/A tg failed_thread N/A test_is_auth_capable_for_admin_ctx N/A N/A self N/A N/A N/A ctx N/A N/A context ctx N/A N/A N/A self assertFalse N/A N/A ctx is_auth_capable N/A test_is_auth_capable_for_user_ctx N/A N/A self N/A N/A N/A existing_ctx N/A N/A context ctx N/A N/A N/A ctx N/A N/A context Context test_user tenant_1 test_auth_token N/A network aURL remote_semaphore 123 N/A N/A N/A self assertTrue N/A N/A ctx is_auth_capable N/A N/A N/A N/A context set_ctx existing_ctx N/A N/A TestException N/A Exception N/A N/A N/A