Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_find_opening_parenthesis(tokens: List[Any], index: int) -> None:
assert find_opening_parenthesis(tokens) == index
def test_find_opening_parenthesis_raises_error() -> None:
with pytest.raises(ExtraLeftOrMissingRight):
find_opening_parenthesis([])