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