MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / test_send_udp

Function test_send_udp

tests/client/test_methods_nat.py:47–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def test_send_udp():
48 sock = Mock()
49 method = get_method('nat')
50 method.send_udp(sock, None, "127.0.0.1", "22222")
51 assert sock.mock_calls == [call.sendto("22222", "127.0.0.1")]
52
53
54def test_setup_tcp_listener():

Callers

nothing calls this directly

Calls 2

get_methodFunction · 0.90
send_udpMethod · 0.45

Tested by

no test coverage detected