MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_basic

Method test_basic

test/mitmproxy/test_connection.py:70–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68
69class TestServer:
70 def test_basic(self):
71 s = Server(address=("address", 22))
72 assert repr(s)
73 assert str(s)
74 s.timestamp_tls_setup = 1607780791
75 assert str(s)
76 s.alpn = b"foo"
77 s.sockname = ("127.0.0.1", 54321)
78 assert str(s) == "Server(address:22, state=closed, alpn=foo, src_port=54321)"
79
80 def test_state(self):
81 c = tserver_conn()

Callers

nothing calls this directly

Calls 1

ServerClass · 0.90

Tested by

no test coverage detected