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

Method test_fd

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

Source from the content-addressed store, hash-verified

30 PexpectTestCase.PexpectTestCase.setUp(self)
31
32 def test_fd (self):
33 fd = os.open ('TESTDATA.txt', os.O_RDONLY)
34 s = fdpexpect.fdspawn (fd)
35 s.expect(b'This is the end of test data:')
36 s.expect(pexpect.EOF)
37 self.assertEqual(s.before, b' END\n')
38
39 def test_maxread (self):
40 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