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

Function test_send_udp

tests/client/test_methods_pf.py:54–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def test_send_udp():
55 sock = Mock()
56 method = get_method('pf')
57 method.send_udp(sock, None, "127.0.0.1", "22222")
58 assert sock.mock_calls == [call.sendto("22222", "127.0.0.1")]
59
60
61def 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