MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / test_host_and_port

Function test_host_and_port

tests/ssh/test_parse_hostport.py:11–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def test_host_and_port():
12 assert parse_hostport("host:22") == (None, None, 22, "host")
13 assert parse_hostport("1.2.3.4:22") == (None, None, 22, "1.2.3.4")
14 assert parse_hostport("[2001::1]:22") == (None, None, 22, "2001::1")
15
16
17def test_username_and_host():

Callers

nothing calls this directly

Calls 1

parse_hostportFunction · 0.90

Tested by

no test coverage detected