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

Function test_username_and_host

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

Source from the content-addressed store, hash-verified

15
16
17def test_username_and_host():
18 assert parse_hostport("user@host") == ("user", None, None, "host")
19 assert parse_hostport("user:@host") == ("user", None, None, "host")
20 assert parse_hostport("user:pass@host") == ("user", "pass", None, "host")

Callers

nothing calls this directly

Calls 1

parse_hostportFunction · 0.90

Tested by

no test coverage detected