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

Method test_socket

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

Source from the content-addressed store, hash-verified

37 PexpectTestCase.PexpectTestCase.setUp(self)
38
39 def test_socket (self):
40 socket = open_file_socket('TESTDATA.txt')
41 s = socket_pexpect.SocketSpawn(socket)
42 s.expect(b'This is the end of test data:')
43 s.expect(pexpect.EOF)
44 self.assertEqual(s.before, b' END\n')
45
46 def test_maxread (self):
47 socket = open_file_socket('TESTDATA.txt')

Callers

nothing calls this directly

Calls 2

open_file_socketFunction · 0.85
expectMethod · 0.80

Tested by

no test coverage detected