def test_peek_CanFail(self): state = ScannerState('foo') self.assertFalse(state.peek('fxo'))
def test_peek_CanFail(self): state = ScannerState("foo") self.assertFalse(state.peek("fxo"))
def test_peek_CanSucceed(self): state = ScannerState('foo') self.assertTrue(state.peek('foo'))
def test_peek_CanSucceed(self): state = ScannerState("foo") self.assertTrue(state.peek("foo"))