(self)
| 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) |