def test_pairs_match():
    matching = '[]{}(){({()})}'
    assert parens_match(matching)
def test_mismatch():
    dont_match = '[()[]}'
    assert not parens_match(dont_match)