MCPcopy Create free account
hub / github.com/pexpect/pexpect / test_socket_isalive

Method test_socket_isalive

tests/test_socket_pexpect.py:55–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 self.assertEqual(s.before, b' END\n')
54
55 def test_socket_isalive (self):
56 socket = open_file_socket('TESTDATA.txt')
57 s = socket_pexpect.SocketSpawn(socket)
58 assert s.isalive()
59 s.close()
60 assert not s.isalive(), "Should not be alive after close()"
61
62 def test_socket_isatty (self):
63 socket = open_file_socket('TESTDATA.txt')

Callers

nothing calls this directly

Calls 3

isaliveMethod · 0.95
closeMethod · 0.95
open_file_socketFunction · 0.85

Tested by

no test coverage detected