MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_state

Method test_state

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

Source from the content-addressed store, hash-verified

78 assert str(s) == "Server(address:22, state=closed, alpn=foo, src_port=54321)"
79
80 def test_state(self):
81 c = tserver_conn()
82 c2 = c.copy()
83 assert c2.get_state() != c.get_state()
84 c.id = c2.id = "foo"
85 assert c2.get_state() == c.get_state()
86
87 def test_address(self):
88 s = Server(address=("address", 22))

Callers

nothing calls this directly

Calls 3

tserver_connFunction · 0.90
copyMethod · 0.45
get_stateMethod · 0.45

Tested by

no test coverage detected