MCPcopy
hub / github.com/jtesta/ssh-audit / test_recv_timeout

Method test_recv_timeout

test/test_errors.py:71–77  ·  view source on GitHub ↗
(self, output_spy, virtual_socket)

Source from the content-addressed store, hash-verified

69 assert 'did not receive banner' in lines[-1]
70
71 def test_recv_timeout(self, output_spy, virtual_socket):
72 vsocket = virtual_socket
73 vsocket.rdata.append(socket.timeout('timed out'))
74 lines = self._audit(output_spy)
75 assert len(lines) == 1
76 assert 'did not receive banner' in lines[-1]
77 assert 'timed out' in lines[-1]
78
79 def test_recv_retry_till_timeout(self, output_spy, virtual_socket):
80 vsocket = virtual_socket

Callers

nothing calls this directly

Calls 1

_auditMethod · 0.95

Tested by

no test coverage detected