Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad ImportFrom alias ImportFrom alias FunctionDef arguments args defaults vararg kwarg body Pass decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call NameLoad Str Num keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assert UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list Call NameLoad Str Call NameLoad Str keyword NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr With Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list
N/A __future__ absolute_import __future__ with_statement N/A os N/A sys N/A struct mock patch create_autospec MagicMock tornado.iostream IOStream N/A base_dir N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ .. N/A N/A base_dir N/A sys path N/A N/A N/A N/A N/A sys path insert 0 base_dir nsq.async AsyncConn nsq protocol f N/A N/A N/A args kwargs N/A N/A N/A _get_test_conn N/A N/A io_loop N/A None N/A N/A conn N/A AsyncConn test 4150 io_loop io_loop N/A N/A conn stream N/A create_autospec IOStream N/A conn N/A test_connect N/A N/A mock_iostream mock_socket N/A N/A N/A conn N/A _get_test_conn N/A N/A N/A conn connect N/A N/A N/A N/A N/A conn stream set_close_callback assert_called_once_with N/A conn _socket_close N/A N/A N/A N/A N/A conn stream connect assert_called_once_with N/A N/A conn host N/A conn port N/A conn _connect_callback N/A N/A N/A conn state CONNECTING N/A conn N/A _get_test_conn N/A N/A conn state CONNECTING N/A N/A N/A conn connect N/A N/A N/A N/A N/A conn stream set_close_callback called N/A N/A N/A N/A N/A conn stream connect called N/A conn N/A _get_test_conn N/A N/A conn state CONNECTED N/A N/A N/A conn connect N/A N/A N/A N/A N/A conn stream set_close_callback called N/A N/A N/A N/A N/A conn stream connect called N/A N/A patch nsq.async.socket N/A patch nsq.async.tornado.iostream.IOStream autospec True test_connect_callback N/A N/A N/A N/A N/A conn N/A _get_test_conn N/A on_connect N/A create_autospec f N/A N/A N/A conn on connect on_connect N/A N/A conn state CONNECTING N/A N/A N/A patch object conn _start_read autospec True mock_start_read N/A N/A N/A N/A conn _connect_callback N/A N/A N/A conn state CONNECTED N/A N/A N/A N/A N/A conn stream write assert_called_once_with N/A protocol MAGIC_V2 N/A N/A N/A mock_start_read assert_called_once_with N/A N/A N/A on_connect assert_called_once_with conn conn N/A test_start_read N/A N/A N/A N/A N/A conn N/A _get_test_conn N/A N/A N/A conn _start_read N/A N/A N/A N/A N/A conn stream read_bytes assert_called_once_with 4 N/A conn _read_size N/A test_read_size N/A N/A N/A N/A N/A conn N/A _get_test_conn N/A body_size 6 N/A body_size_packed N/A N/A struct pack >l body_size N/A N/A N/A conn _read_size body_size_packed N/A N/A N/A N/A N/A conn stream read_bytes assert_called_once_with body_size N/A conn _read_body N/A N/A N/A N/A N/A conn stream read_bytes reset_mock N/A N/A N/A patch object conn close autospec True mock_close N/A N/A N/A N/A conn _read_size asdfasdf N/A N/A N/A mock_close assert_called_once_with N/A N/A N/A N/A N/A conn stream read_bytes called N/A test_read_body N/A N/A N/A N/A N/A mock_io_loop N/A MagicMock N/A conn N/A _get_test_conn io_loop mock_io_loop N/A on_data N/A create_autospec f N/A N/A N/A conn on data on_data N/A mock_ioloop_addcb N/A create_autospec f N/A N/A mock_io_loop add_callback mock_ioloop_addcb N/A data NSQ N/A N/A N/A conn _read_body data N/A N/A N/A on_data assert_called_once_with conn conn data data N/A N/A N/A mock_ioloop_addcb assert_called_once_with N/A conn _start_read N/A N/A N/A on_data reset_mock N/A N/A N/A mock_ioloop_addcb reset_mock N/A N/A on_data return_value N/A Exception Boom. N/A N/A N/A conn _read_body data N/A N/A N/A mock_ioloop_addcb assert_called_once_with N/A conn _start_read N/A