def test_expect_order (self):
        p = pexpect.spawn('cat', echo=False, timeout=5)
        self._expect_order(p)
This tests that patterns are matched in the same order as given in the pattern_list.
dataset/ETHPy150Open Calysto/metakernel/metakernel/tests/test_expect.py/ExpectTestCase.test_expect_order