def test_find_backslash_quoted(self): s = 'abc \\> def >' self.assertEqual(scanner.find_unquoted(s, len(s), '>'), 11)
def test_find_one_of(self): s = 'abc \\> def | ghi >' self.assertEqual(scanner.find_unquoted(s, len(s), '|>'), 11)
def test_find_quoted(self): s = 'abc ">" def >' self.assertEqual(scanner.find_unquoted(s, len(s), '>'), 12)