()
| 15 | |
| 16 | |
| 17 | def test_get_tcp_dstip(): |
| 18 | sock = Mock() |
| 19 | sock.getsockname.return_value = ('127.0.0.1', 1024) |
| 20 | method = get_method('tproxy') |
| 21 | assert method.get_tcp_dstip(sock) == ('127.0.0.1', 1024) |
| 22 | assert sock.mock_calls == [call.getsockname()] |
| 23 | |
| 24 | |
| 25 | @patch("sshuttle.methods.tproxy.recv_udp") |
nothing calls this directly
no test coverage detected