MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_simple

Method test_simple

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

Source from the content-addressed store, hash-verified

22
23class TestRequest:
24 def test_simple(self):
25 f = tflow()
26 r = f.request
27 u = r.url
28 r.url = u
29 with pytest.raises(ValueError):
30 setattr(r, "url", "")
31 assert r.url == u
32 r2 = r.copy()
33 assert r.get_state() == r2.get_state()
34 assert hash(r)
35
36 def test_get_url(self):
37 r = treq()

Callers

nothing calls this directly

Calls 4

tflowFunction · 0.90
hashFunction · 0.85
copyMethod · 0.45
get_stateMethod · 0.45

Tested by

no test coverage detected