(self)
| 30 | assert await p.expect(["foo", pexpect.TIMEOUT], timeout=1, async_=True) == 1 |
| 31 | |
| 32 | async def test_eof(self): |
| 33 | p = pexpect.spawn("cat") |
| 34 | p.sendline("Hi") |
| 35 | p.sendeof() |
| 36 | assert await p.expect(pexpect.EOF, async_=True) == 0 |
| 37 | |
| 38 | p = pexpect.spawn("cat") |
| 39 | p.sendeof() |
| 40 | with self.assertRaises(pexpect.EOF): |
| 41 | await p.expect("Blah", async_=True) |
| 42 | |
| 43 | async def test_expect_exact(self): |
| 44 | p = pexpect.spawn("%s list100.py" % self.PYTHONBIN) |
nothing calls this directly
no test coverage detected