Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore ListLoad Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore ListLoad Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Str Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Str Index Num decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd Str BinOpMult Str Num AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Yield Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Assert Call NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd Str NameLoad Dict Str Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd Str NameLoad Dict Str Str Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd BinOpAdd Str NameLoad Str decorator_list AttributeLoad NameLoad attr decorator_list
N/A N/A os N/A shutil N/A socket twisted.internet defer twisted.web error ooni errors e ooni.settings config ooni.oonibclient OONIBClient ooni.tests.bases ConfigTestCase N/A input_id 37e60e13536f6afe47a830bfb6b371b5cf65da66d7ad65137344679b24fdccd1 N/A deck_id d4ae40ecfb3c1b943748cce503ab8233efce7823f3e391058fc0f87829c644ed TestOONIBClient N/A ConfigTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestOONIBClient self setUp N/A host 127.0.0.1 N/A port 8889 N/A s N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A N/A N/A s connect N/A host port N/A N/A N/A s shutdown 2 N/A data_dir /tmp/testooni N/A N/A N/A config advanced data_dir data_dir N/A N/A N/A N/A os path exists data_dir N/A N/A N/A N/A shutil rmtree data_dir N/A N/A N/A os mkdir data_dir N/A N/A N/A os mkdir N/A N/A N/A os path join data_dir inputs N/A N/A N/A os mkdir N/A N/A N/A os path join data_dir decks N/A N/A N/A Exception N/A N/A N/A N/A self skipTest OONIB must be listening on port 8888 to run this test (tor_hidden_service: false) N/A N/A self oonibclient N/A OONIBClient N/A N/A N/A http:// host : N/A str port N/A test_query N/A N/A self N/A N/A N/A res N/A N/A N/A N/A self oonibclient queryBackend GET /policy/input N/A N/A N/A self assertTrue N/A isinstance res list N/A N/A defer inlineCallbacks test_get_input_list N/A N/A self N/A N/A N/A input_list N/A N/A N/A N/A self oonibclient getInputList N/A N/A N/A self assertTrue N/A isinstance input_list list N/A N/A defer inlineCallbacks test_get_input_descriptor N/A N/A self N/A N/A N/A input_descriptor N/A N/A N/A N/A self oonibclient getInput input_id N/A key N/A name description version author date id N/A N/A N/A N/A self assertTrue N/A hasattr input_descriptor key N/A N/A defer inlineCallbacks test_download_input N/A N/A self N/A N/A N/A N/A N/A N/A N/A self oonibclient downloadInput input_id N/A N/A defer inlineCallbacks test_get_deck_list N/A N/A self N/A N/A N/A deck_list N/A N/A N/A N/A self oonibclient getDeckList N/A N/A N/A self assertTrue N/A isinstance deck_list list N/A N/A defer inlineCallbacks test_get_deck_descriptor N/A N/A self N/A N/A N/A deck_descriptor N/A N/A N/A N/A self oonibclient getDeck deck_id N/A key N/A name description version author date id N/A N/A N/A N/A self assertTrue N/A hasattr deck_descriptor key N/A N/A defer inlineCallbacks test_download_deck N/A N/A self N/A N/A N/A N/A N/A N/A N/A self oonibclient downloadDeck deck_id N/A N/A defer inlineCallbacks test_lookup_invalid_helpers N/A N/A self N/A N/A N/A N/A N/A self oonibclient address http://127.0.0.1:8888 N/A N/A N/A self failUnlessFailure N/A N/A N/A self oonibclient lookupTestHelpers N/A sdadsadsa dns N/A e CouldNotFindTestHelper N/A test_lookup_no_test_helpers N/A N/A self N/A N/A N/A N/A N/A self oonibclient address http://127.0.0.1:8888 N/A required_helpers N/A N/A helpers N/A N/A N/A N/A self oonibclient lookupTestHelpers required_helpers N/A N/A N/A self assertTrue N/A default N/A N/A helpers keys N/A N/A defer inlineCallbacks test_lookup_test_helpers N/A N/A self N/A N/A N/A N/A N/A self oonibclient address http://127.0.0.1:8888 N/A required_helpers N/A http-return-json-headers dns N/A helpers N/A N/A N/A N/A self oonibclient lookupTestHelpers required_helpers N/A N/A N/A self assertEqual N/A set N/A N/A helpers keys N/A set N/A required_helpers N/A default N/A N/A N/A self assertTrue N/A N/A N/A N/A helpers N/A http-return-json-headers N/A address startswith http N/A N/A N/A self assertTrue N/A int N/A N/A N/A N/A N/A helpers N/A dns N/A address split . N/A 0 N/A N/A defer inlineCallbacks test_input_descriptor_not_found N/A N/A self N/A N/A N/A N/A N/A N/A self assertFailure N/A N/A N/A self oonibclient queryBackend GET N/A /input/ N/A a 64 N/A e OONIBInputDescriptorNotFound N/A N/A defer inlineCallbacks test_http_errors N/A N/A self N/A N/A N/A N/A N/A N/A self assertFailure N/A N/A N/A self oonibclient queryBackend PUT /policy/input N/A error Error N/A N/A defer inlineCallbacks test_create_report N/A N/A self N/A N/A N/A res N/A N/A N/A N/A self oonibclient queryBackend POST /report N/A software_name software_version probe_asn probe_cc test_name test_version input_hashes spam 2.0 AS0 ZZ foobar 1.0 N/A N/A N/A isinstance N/A res N/A report_id unicode N/A N/A defer inlineCallbacks test_report_lifecycle N/A N/A self N/A N/A N/A res N/A N/A N/A N/A self oonibclient queryBackend POST /report N/A software_name software_version probe_asn probe_cc test_name test_version input_hashes spam 2.0 AS0 ZZ foobar 1.0 N/A N/A report_id N/A str N/A res N/A report_id N/A res N/A N/A N/A N/A self oonibclient queryBackend POST N/A /report/ report_id N/A content ---
spam: ham
...
 N/A res N/A N/A N/A N/A self oonibclient queryBackend POST N/A /report/ report_id N/A content ---
spam: ham
...
 N/A res N/A N/A N/A N/A self oonibclient queryBackend POST N/A N/A /report/ report_id /close N/A N/A defer inlineCallbacks N/A