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

Function test_recv_udp

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

Source from the content-addressed store, hash-verified

36
37
38def test_recv_udp():
39 sock = Mock()
40 sock.recvfrom.return_value = "11111", "127.0.0.1"
41 method = get_method('nat')
42 result = method.recv_udp(sock, 1024)
43 assert sock.mock_calls == [call.recvfrom(1024)]
44 assert result == ("127.0.0.1", None, "11111")
45
46
47def test_send_udp():

Callers

nothing calls this directly

Calls 2

get_methodFunction · 0.90
recv_udpMethod · 0.45

Tested by

no test coverage detected