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

Function test_recv_udp

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

Source from the content-addressed store, hash-verified

43
44
45def test_recv_udp():
46 sock = Mock()
47 sock.recvfrom.return_value = "11111", "127.0.0.1"
48 method = get_method('pf')
49 result = method.recv_udp(sock, 1024)
50 assert sock.mock_calls == [call.recvfrom(1024)]
51 assert result == ("127.0.0.1", None, "11111")
52
53
54def test_send_udp():

Callers

nothing calls this directly

Calls 2

get_methodFunction · 0.90
recv_udpMethod · 0.45

Tested by

no test coverage detected