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

Method test_maxread

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

Source from the content-addressed store, hash-verified

37 self.assertEqual(s.before, b' END\n')
38
39 def test_maxread (self):
40 fd = os.open ('TESTDATA.txt', os.O_RDONLY)
41 s = fdpexpect.fdspawn (fd)
42 s.maxread = 100
43 s.expect('2')
44 s.expect ('This is the end of test data:')
45 s.expect (pexpect.EOF)
46 self.assertEqual(s.before, b' END\n')
47
48 def test_fd_isalive (self):
49 fd = os.open ('TESTDATA.txt', os.O_RDONLY)

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
expectMethod · 0.80

Tested by

no test coverage detected