MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_open_connection_err

Function test_open_connection_err

test/mitmproxy/proxy/layers/test_udp.py:28–39  ·  view source on GitHub ↗
(tctx)

Source from the content-addressed store, hash-verified

26
27
28def test_open_connection_err(tctx):
29 f = Placeholder(UDPFlow)
30 assert (
31 Playbook(udp.UDPLayer(tctx))
32 << udp.UdpStartHook(f)
33 >> reply()
34 << OpenConnection(tctx.server)
35 >> reply("Connect call failed")
36 << udp.UdpErrorHook(f)
37 >> reply()
38 << CloseConnection(tctx.client)
39 )
40
41
42def test_simple(tctx):

Callers

nothing calls this directly

Calls 5

OpenConnectionClass · 0.90
CloseConnectionClass · 0.90
PlaceholderFunction · 0.85
PlaybookClass · 0.85
replyClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…