def test_re_findall(self): assert re.findall(":+", "abc") == [] assert re.findall(":+", "a:b::c:::d") == [":", "::", ":::"] assert re.findall("(:+)", "a:b::c:::d") == [":", "::", ":::"] assert re.findall("(:)(:*)", "a:b::c:::d") == [(":", ""), (":", ":"), (":", "::")]
def test_bug_117612(self): assert re.findall(r"(a|(b))", "aba") == ( [("a", ""),("b", "b"),("a", "")])
def test_bug_117612(self): assert re.findall(r"(a|(b))", "aba") == ([("a", ""), ("b", "b"), ("a", "")])