def test_expect_echo_exact (self): '''Like test_expect_echo(), but using expect_exact(). ''' p = pexpect.spawnu('cat', timeout=5) p.expect = p.expect_exact self._expect_echo(p)