MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_eq

Method test_eq

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

Source from the content-addressed store, hash-verified

23 assert not c.connected
24
25 def test_eq(self):
26 c = tclient_conn()
27 c2 = c.copy()
28 assert c == c
29 assert c != c2
30 assert c != 42
31 assert hash(c) != hash(c2)
32
33 c2.id = c.id
34 assert c == c2
35
36
37class TestClient:

Callers

nothing calls this directly

Calls 3

tclient_connFunction · 0.90
hashFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected