Module Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Str BinOpMult AttributeLoad NameLoad attr Num AugAssignAdd NameStore BinOpMult Str BinOpSub AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad BinOpMult Str AttributeLoad NameLoad attr BinOpMult Str AttributeLoad NameLoad attr BinOpMult Str BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A mock twisted.trial unittest oppy.stream stream StreamTest N/A N/A unittest TestCase N/A setUp N/A N/A self mock_dq mock_er mock_osp mock_cm N/A N/A N/A N/A self mock_er mock_er N/A N/A self mock_osp mock_osp N/A N/A self mock_cm mock_cm N/A N/A self mock_dq mock_dq N/A N/A self stream N/A N/A stream Stream N/A self mock_cm N/A self mock_er N/A self mock_osp N/A N/A self log_patch N/A N/A mock patch oppy.stream.stream.logging N/A N/A self mock_log N/A N/A N/A self log_patch start N/A N/A N/A mock patch oppy.circuit.circuitmanager.CircuitManager autospec True N/A N/A mock patch oppy.socks.socks.OppySOCKSProtocol autospec True N/A N/A mock patch oppy.util.exitrequest.ExitRequest autospec True N/A N/A mock patch twisted.internet.defer.DeferredQueue autospec True test_recv N/A N/A self N/A N/A N/A N/A N/A N/A self stream recv test N/A N/A N/A N/A N/A N/A self stream _read_queue put assert_called_once_with test N/A test_send N/A N/A self mock_crd N/A N/A N/A N/A N/A N/A self stream send test N/A N/A N/A self assertEqual N/A N/A N/A N/A self stream _write_queue put call_count 2 N/A N/A N/A self assertEqual N/A N/A N/A N/A self stream _write_queue put call_args_list N/A N/A N/A mock call c1 N/A N/A mock call c2 N/A N/A N/A mock patch oppy.stream.stream._chunkRelayData return_value N/A c1 c2 test_incrementPackageWindow_normal N/A N/A self N/A N/A N/A N/A N/A self stream _pollWriteQueue N/A N/A mock Mock N/A N/A N/A self stream _write_deferred wd N/A N/A N/A self stream _package_window 1 N/A N/A N/A N/A self stream incrementPackageWindow N/A N/A N/A self assertEqual N/A N/A self stream _package_window N/A N/A stream STREAM_WINDOW_SIZE 1 N/A N/A N/A self assertEqual N/A N/A N/A self stream _pollWriteQueue call_count 0 N/A test_incrementPackageWindow_buffering N/A N/A self N/A N/A N/A N/A N/A self stream _pollWriteQueue N/A N/A mock Mock N/A N/A N/A self stream _write_deferred None N/A N/A N/A self stream _package_window 0 N/A N/A N/A N/A self stream incrementPackageWindow N/A N/A N/A self assertEqual N/A N/A self stream _package_window N/A stream STREAM_WINDOW_SIZE N/A N/A N/A self assertEqual N/A N/A N/A self stream _pollWriteQueue call_count 1 N/A test_streamConnected N/A N/A self N/A N/A N/A N/A N/A self stream _pollWriteQueue N/A N/A mock Mock N/A N/A N/A N/A self stream streamConnected N/A N/A N/A self assertEqual N/A N/A N/A self stream _pollWriteQueue call_count 1 N/A test_closeFromCircuit N/A N/A self N/A N/A N/A N/A N/A self stream circuit N/A N/A mock Mock N/A N/A N/A self stream circuit_id test N/A N/A N/A N/A self stream closeFromCircuit N/A N/A N/A self assertEqual N/A N/A N/A N/A self stream socks closeFromStream call_count 1 N/A N/A N/A self assertTrue N/A N/A self stream _closed N/A test_closeFromSOCKS_no_circuit N/A N/A self N/A N/A N/A N/A N/A self stream circuit None N/A N/A N/A N/A self stream closeFromSOCKS N/A N/A N/A self assertTrue N/A N/A self stream _closed N/A test_closeFromSOCKS_circuit N/A N/A self N/A N/A N/A N/A N/A self stream circuit N/A N/A mock Mock N/A N/A N/A N/A self stream circuit removeStream N/A N/A mock Mock N/A N/A N/A N/A self stream closeFromSOCKS N/A N/A N/A N/A N/A N/A self stream circuit removeStream assert_called_once_with N/A self stream N/A N/A N/A self assertTrue N/A N/A self stream _closed N/A test_registerNewStream_closed N/A N/A self N/A N/A N/A mock_circuit N/A N/A mock Mock N/A N/A mock_circuit addStreamAndSetStreamID N/A N/A mock Mock N/A N/A N/A self stream _closed True N/A N/A N/A N/A self stream _registerNewStream mock_circuit N/A N/A N/A self assertEqual N/A N/A mock_circuit addStreamAndSetStreamID call_count 0 N/A test_registerNewStream N/A N/A self N/A N/A N/A mock_circuit N/A N/A mock Mock N/A N/A mock_circuit addStreamAndSetStreamID N/A N/A mock Mock N/A N/A mock_circuit beginStream N/A N/A mock Mock N/A N/A N/A self stream _pollReadQueue N/A N/A mock Mock N/A N/A N/A self stream _circuit_request test N/A N/A N/A N/A self stream _registerNewStream mock_circuit N/A N/A N/A self assertEqual N/A N/A self stream circuit mock_circuit N/A N/A N/A self assertEqual N/A N/A self stream _circuit_request None N/A N/A N/A N/A mock_circuit addStreamAndSetStreamID assert_called_once_with N/A self stream N/A N/A N/A N/A mock_circuit beginStream assert_called_once_with N/A self stream N/A N/A N/A self assertEqual N/A N/A N/A self stream _pollReadQueue call_count 1 N/A test_pollWriteQueue N/A N/A self N/A N/A N/A mock_wd N/A N/A mock Mock N/A N/A mock_wd addCallback N/A N/A mock Mock N/A N/A N/A N/A N/A self stream _write_queue get return_value mock_wd N/A N/A N/A N/A self stream _pollWriteQueue N/A N/A N/A self assertEqual N/A N/A self stream _write_deferred mock_wd N/A N/A N/A N/A mock_wd addCallback assert_called_once_with N/A N/A self stream _writeData N/A test_pollReadQueue N/A N/A self N/A N/A N/A mock_rd N/A N/A mock Mock N/A N/A mock_rd addCallback N/A N/A mock Mock N/A N/A N/A N/A N/A self stream _read_queue get return_value mock_rd N/A N/A N/A N/A self stream _pollReadQueue N/A N/A N/A self assertEqual N/A N/A self stream _read_deferred mock_rd N/A N/A N/A N/A mock_rd addCallback assert_called_once_with N/A N/A self stream _recvData N/A test_writeData N/A N/A self N/A N/A N/A N/A N/A self stream _decPackageWindow N/A N/A mock Mock N/A N/A N/A self stream circuit N/A N/A mock Mock N/A N/A N/A N/A self stream circuit send N/A N/A mock Mock N/A N/A N/A N/A self stream _writeData test N/A N/A N/A N/A N/A N/A self stream circuit send assert_called_once_with test N/A self stream N/A N/A N/A self assertEqual N/A N/A N/A self stream _decPackageWindow call_count 1 N/A test_recvData N/A N/A self N/A N/A N/A N/A N/A self stream _decDeliverWindow N/A N/A mock Mock N/A N/A N/A N/A self stream _recvData test N/A N/A N/A N/A N/A N/A self stream socks recv assert_called_once_with test N/A N/A N/A self assertEqual N/A N/A N/A self stream _decDeliverWindow call_count 1 N/A test_decDeliverWindow_above_threshold N/A N/A self N/A N/A N/A N/A N/A self stream _deliver_window 500 N/A N/A N/A self stream _pollReadQueue N/A N/A mock Mock N/A N/A N/A N/A self stream _decDeliverWindow N/A N/A N/A self assertEqual N/A N/A self stream _deliver_window 499 N/A N/A N/A self assertEqual N/A N/A N/A self stream _pollReadQueue call_count 1 N/A test_decDeliverWindow_at_threshold N/A N/A self N/A N/A N/A N/A N/A self stream _deliver_window 451 N/A N/A N/A self stream circuit N/A N/A mock Mock N/A N/A N/A N/A self stream circuit sendStreamSendMe N/A N/A mock Mock N/A N/A N/A self stream _pollReadQueue N/A N/A mock Mock N/A N/A N/A N/A self stream _decDeliverWindow N/A N/A N/A self assertEqual N/A N/A self stream _deliver_window 500 N/A N/A N/A N/A N/A N/A self stream circuit sendStreamSendMe assert_called_once_with N/A self stream N/A N/A N/A self assertEqual N/A N/A N/A self stream _pollReadQueue call_count 1 N/A test_decPackageWindow_above_threshold N/A N/A self N/A N/A N/A N/A N/A self stream _package_window 2 N/A N/A N/A self stream _pollWriteQueue N/A N/A mock Mock N/A N/A N/A N/A self stream _decPackageWindow N/A N/A N/A self assertEqual N/A N/A self stream _package_window 1 N/A N/A N/A self assertEqual N/A N/A N/A self stream _pollWriteQueue call_count 1 N/A test_packageWindow_at_threshold N/A N/A self N/A N/A N/A N/A N/A self stream _package_window 1 N/A N/A N/A self stream _pollWriteQueue N/A N/A mock Mock N/A N/A N/A N/A self stream _decPackageWindow N/A N/A N/A self assertEqual N/A N/A self stream _package_window 0 N/A N/A N/A self assertEqual N/A N/A N/A self stream _pollWriteQueue call_count 0 N/A N/A N/A self assertEqual N/A N/A self stream _write_deferred None N/A test_chunkRelayData N/A N/A self N/A N/A N/A data N/A N/A N/A stream MAX_RPAYLOAD_LEN 2 N/A data N/A N/A N/A stream MAX_RPAYLOAD_LEN 1 N/A ret N/A N/A stream _chunkRelayData data N/A N/A N/A self assertEqual ret N/A N/A N/A stream MAX_RPAYLOAD_LEN N/A N/A stream MAX_RPAYLOAD_LEN N/A N/A N/A stream MAX_RPAYLOAD_LEN 1 N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self log_patch stop N/A N/A