Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Check that the expression is true.

src/p/e/pexpect-u-2.5.1/pexpect/tests/test_expect.py   pexpect-u(Download)
        p.expect('>>> ')
        self.assertEqual(p.after, '>>> ')
        self.assert_(p.before.startswith('Python '))
 
        p.sendline('list(range(4*3))')
 
        p.expect('5')
        self.assertEqual(p.after, '5')
        self.assert_(p.before.startswith('list(range(4*3))'))
        p.expect('>>> ')
        self.assertEqual(p.after, '>>> ')
        self.assert_(p.before.startswith(', 6, 7, 8'))
 
    def test_before_after(self):