Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str Assign AttributeStore NameLoad attr Str If Call NameLoad AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Delete SubscriptDel AttributeLoad NameLoad attr Index Str orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMult NameLoad Num decorator_list AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore NameLoad Assign NameStore Num Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Num Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num For TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad TupleLoad Num NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A os twisted.trial unittest twisted.internet defer task ooni.managers MeasurementManager ooni.tests.mocks MockSuccessTask MockFailTask MockFailOnceTask MockFailure ooni.tests.mocks MockSuccessTaskWithTimeout MockFailTaskThatTimesOut ooni.tests.mocks MockTimeoutOnceTask MockFailTaskWithTimeout ooni.tests.mocks MockTaskManager mockFailure MockDirector ooni.tests.mocks MockNetTest MockSuccessMeasurement ooni.tests.mocks MockFailMeasurement ooni.settings config TestTaskManager N/A N/A unittest TestCase N/A N/A timeout 1 setUp N/A N/A self N/A N/A N/A N/A self measurementManager N/A MockTaskManager N/A N/A N/A self measurementManager concurrency 20 N/A N/A N/A self measurementManager retries 2 N/A N/A N/A N/A self measurementManager start N/A N/A self clock N/A N/A task Clock N/A data_dir N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A data_dir N/A N/A N/A os path join data_dir .. .. data N/A N/A self old_datadir N/A N/A hasattr N/A config global_options datadir N/A N/A N/A self old_datadir N/A N/A config global_options N/A datadir N/A N/A N/A config global_options N/A datadir data_dir N/A N/A N/A config set_paths N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self old_datadir N/A N/A N/A N/A config global_options N/A datadir N/A N/A N/A N/A config global_options N/A datadir N/A self old_datadir N/A N/A N/A config set_paths N/A schedule_successful_tasks N/A N/A self task_type number N/A 1 N/A N/A all_done N/A N/A x N/A range number N/A N/A mock_task N/A task_type N/A N/A N/A all_done append N/A mock_task done N/A N/A N/A N/A self measurementManager schedule mock_task N/A d N/A N/A defer DeferredList all_done done N/A N/A res N/A N/A N/A N/A task_result task_instance N/A N/A self measurementManager successes N/A N/A N/A N/A self assertEqual task_result 42 N/A N/A N/A self assertIsInstance task_instance task_type N/A N/A d addCallback N/A d N/A schedule_failing_tasks N/A N/A self task_type number N/A 1 N/A N/A all_done N/A N/A x N/A range number N/A N/A mock_task N/A task_type N/A N/A N/A all_done append N/A mock_task done N/A N/A N/A N/A mock_task done addErrback N/A N/A N/A x N/A None N/A N/A N/A N/A self measurementManager schedule mock_task N/A d N/A N/A defer DeferredList all_done done N/A N/A res N/A N/A N/A N/A N/A self assertEqual N/A N/A self measurementManager failures N/A number 3 N/A N/A d addCallback N/A d N/A test_schedule_failing_with_mock_failure_task N/A N/A self N/A N/A N/A mock_task N/A MockFailTask N/A N/A N/A N/A self measurementManager schedule mock_task N/A N/A N/A self assertFailure N/A mock_task done MockFailure N/A N/A mock_task done N/A test_schedule_successful_one_task N/A N/A self N/A N/A N/A N/A N/A self schedule_successful_tasks MockSuccessTask N/A test_schedule_successful_one_task_with_timeout N/A N/A self N/A N/A N/A N/A N/A self schedule_successful_tasks MockSuccessTaskWithTimeout N/A test_schedule_failing_tasks_that_timesout N/A N/A self N/A N/A N/A N/A N/A self measurementManager retries 0 N/A task_type MockFailTaskThatTimesOut N/A task_timeout 5 N/A mock_task N/A task_type N/A N/A mock_task timeout task_timeout N/A N/A mock_task clock N/A self clock N/A N/A N/A N/A self measurementManager schedule mock_task N/A N/A N/A N/A self clock advance task_timeout done N/A N/A res N/A N/A N/A N/A N/A self assertEqual N/A N/A self measurementManager failures 1 N/A N/A N/A mock_task done addBoth N/A N/A mock_task done N/A test_schedule_time_out_once N/A N/A self N/A N/A N/A task_type MockTimeoutOnceTask N/A task_timeout 5 N/A mock_task N/A task_type N/A N/A mock_task timeout task_timeout N/A N/A mock_task clock N/A self clock N/A N/A N/A N/A self measurementManager schedule mock_task N/A N/A N/A N/A self clock advance task_timeout done N/A N/A res N/A N/A N/A N/A N/A self assertEqual N/A N/A self measurementManager failures 1 N/A N/A task_result task_instance N/A N/A self measurementManager successes N/A N/A N/A N/A self assertEqual task_result 42 N/A N/A N/A self assertIsInstance task_instance task_type N/A N/A N/A mock_task done addBoth N/A N/A mock_task done N/A test_schedule_failing_one_task N/A N/A self N/A N/A N/A N/A N/A self schedule_failing_tasks MockFailTask N/A test_schedule_failing_one_task_with_timeout N/A N/A self N/A N/A N/A N/A N/A self schedule_failing_tasks MockFailTaskWithTimeout N/A test_schedule_successful_ten_tasks N/A N/A self N/A N/A N/A N/A N/A self schedule_successful_tasks MockSuccessTask number 10 N/A test_schedule_failing_ten_tasks N/A N/A self N/A N/A N/A N/A N/A self schedule_failing_tasks MockFailTask number 10 N/A test_schedule_successful_27_tasks N/A N/A self N/A N/A N/A N/A N/A self schedule_successful_tasks MockSuccessTask number 27 N/A test_schedule_failing_27_tasks N/A N/A self N/A N/A N/A N/A N/A self schedule_failing_tasks MockFailTask number 27 N/A test_task_retry_and_succeed N/A N/A self N/A N/A N/A mock_task N/A MockFailOnceTask N/A N/A N/A N/A self measurementManager schedule mock_task done N/A N/A res N/A N/A N/A N/A N/A self assertEqual N/A N/A self measurementManager failures 1 N/A N/A N/A self assertEqual N/A N/A self measurementManager successes N/A N/A 42 mock_task N/A N/A N/A mock_task done addCallback N/A N/A mock_task done N/A test_task_retry_and_succeed_56_tasks N/A N/A self N/A N/A N/A 
        XXX this test fails in a non-deterministic manner.
         N/A all_done N/A N/A number 56 N/A x N/A range number N/A N/A mock_task N/A MockFailOnceTask N/A N/A N/A all_done append N/A mock_task done N/A N/A N/A N/A self measurementManager schedule mock_task N/A d N/A N/A defer DeferredList all_done done N/A N/A res N/A N/A N/A N/A N/A self assertEqual N/A N/A self measurementManager failures number N/A N/A task_result task_instance N/A N/A self measurementManager successes N/A N/A N/A N/A self assertEqual task_result 42 N/A N/A N/A self assertIsInstance task_instance MockFailOnceTask N/A N/A d addCallback N/A d N/A N/A TestMeasurementManager N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A mock_director N/A MockDirector N/A N/A self measurementManager N/A MeasurementManager N/A N/A N/A self measurementManager director mock_director N/A N/A N/A self measurementManager concurrency 10 N/A N/A N/A self measurementManager retries 2 N/A N/A N/A N/A self measurementManager start N/A N/A self mockNetTest N/A MockNetTest N/A test_schedule_and_net_test_notified N/A N/A self number N/A 1 N/A N/A mock_task N/A MockSuccessMeasurement N/A self mockNetTest N/A N/A N/A N/A self measurementManager schedule mock_task done N/A N/A res N/A N/A N/A N/A N/A self assertEqual N/A N/A self mockNetTest successes N/A 42 N/A N/A N/A self assertEqual N/A len N/A N/A self mockNetTest successes 1 N/A N/A N/A mock_task done addCallback N/A N/A mock_task done N/A test_schedule_failing_one_measurement N/A N/A self N/A N/A N/A mock_task N/A MockFailMeasurement N/A self mockNetTest N/A N/A N/A N/A self measurementManager schedule mock_task done N/A N/A failure N/A N/A N/A N/A N/A self assertEqual N/A N/A self measurementManager failures 3 N/A N/A N/A self assertEqual failure mockFailure N/A N/A N/A self assertEqual N/A len N/A N/A self mockNetTest successes 0 N/A N/A N/A mock_task done addErrback N/A N/A mock_task done N/A N/A