(self)
| 30 | class ExpectTestCase (PexpectTestCase.PexpectTestCase): |
| 31 | |
| 32 | def test_expect_basic(self): |
| 33 | p = PopenSpawn('cat', timeout=5) |
| 34 | p.sendline(b'Hello') |
| 35 | p.sendline(b'there') |
| 36 | p.sendline(b'Mr. Python') |
| 37 | p.expect(b'Hello') |
| 38 | p.expect(b'there') |
| 39 | p.expect(b'Mr. Python') |
| 40 | p.sendeof() |
| 41 | p.expect(pexpect.EOF) |
| 42 | |
| 43 | def test_expect_exact_basic(self): |
| 44 | p = PopenSpawn('cat', timeout=5) |
nothing calls this directly
no test coverage detected