Module Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Assign NameStore Call NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Str decorator_list decorator_list
N/A N/A socket N/A unittest unittest mock pulsar.utils.internet parse_address parse_connection_string close_socket format_address TestParseAddress N/A N/A unittest TestCase N/A test_parse_ipv4 N/A N/A self N/A N/A N/A address N/A parse_address 127.0.0.1 N/A N/A N/A self assertEqual address N/A 127.0.0.1 8000 N/A address N/A parse_address 127.0.0.1 8060 N/A N/A N/A self assertEqual address N/A 127.0.0.1 8060 N/A test_parse_ipv6 N/A N/A self N/A N/A N/A address N/A parse_address [::1] N/A N/A N/A self assertEqual address N/A ::1 8000 N/A address N/A parse_address [::1]:8070 N/A N/A N/A self assertEqual address N/A ::1 8070 N/A test_parse_error N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError parse_address N/A N/A N/A N/A self assertRaises ValueError parse_address N/A 1 N/A N/A N/A self assertRaises ValueError parse_address N/A 1 2 3 N/A N/A N/A self assertRaises ValueError parse_address 127.0.0.1:bla N/A N/A TestParseConnectionString N/A N/A unittest TestCase N/A test_parse_tcp N/A N/A self N/A N/A N/A N/A scheme address params N/A parse_connection_string 127.0.0.1:8050 N/A N/A N/A self assertEqual scheme N/A N/A N/A self assertEqual address N/A 127.0.0.1 8050 N/A N/A N/A self assertEqual params N/A N/A test_parse_tcp_default N/A N/A self N/A N/A N/A N/A scheme address params N/A parse_connection_string 127.0.0.1 8095 N/A N/A N/A self assertEqual scheme N/A N/A N/A self assertEqual address N/A 127.0.0.1 8095 N/A N/A N/A self assertEqual params N/A N/A test_parse_unix N/A N/A self N/A N/A N/A N/A scheme address params N/A parse_connection_string unix:bla.foo N/A N/A N/A self assertEqual scheme N/A N/A N/A self assertEqual address bla.foo N/A N/A N/A self assertEqual params N/A N/A test_parse_unix_with_scheme N/A N/A self N/A N/A N/A N/A scheme address params N/A parse_connection_string redis://unix:bla.foo N/A N/A N/A self assertEqual scheme redis N/A N/A N/A self assertEqual address bla.foo N/A N/A N/A self assertEqual params N/A N/A test_parse_tcp_with_scheme_and_params N/A N/A self N/A N/A N/A N/A scheme address params N/A parse_connection_string redis://:6439?db=3 N/A N/A N/A self assertEqual scheme redis N/A N/A N/A self assertEqual address N/A 6439 N/A N/A N/A self assertEqual params N/A db 3 N/A test_parse_tcp_with_http_and_params N/A N/A self N/A N/A N/A N/A scheme address params N/A parse_connection_string http://:6439?db=3&bla=foo N/A N/A N/A self assertEqual scheme http N/A N/A N/A self assertEqual address N/A 6439 N/A N/A N/A self assertEqual params N/A db bla 3 foo N/A test_parse_tcp_with_https_and_params N/A N/A self N/A N/A N/A N/A scheme address params N/A parse_connection_string https://127.0.0.1:6439?db=3&bla=foo N/A N/A N/A self assertEqual scheme https N/A N/A N/A self assertEqual address N/A 127.0.0.1 6439 N/A N/A N/A self assertEqual params N/A db bla 3 foo N/A N/A TestMisc N/A N/A unittest TestCase N/A test_close_socket N/A N/A self N/A N/A N/A N/A close_socket None N/A sock N/A N/A mock Mock N/A N/A N/A sock configure_mock N/A shutdown.side_effect close.side_effect TypeError TypeError N/A N/A close_socket sock N/A N/A N/A N/A sock shutdown assert_called_with N/A socket SHUT_RDWR N/A N/A N/A N/A sock close assert_called_with N/A test_format_address N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError format_address N/A 1 N/A N/A N/A self assertRaises ValueError format_address N/A 1 2 3 N/A N/A N/A self assertRaises ValueError format_address N/A 1 2 3 4 5 N/A N/A N/A self assertEqual N/A format_address 1 1 N/A N/A