def test_attempt_exception(case, expected): assert isinstance(_.attempt(*case), expected)
def test_attempt(case, expected): assert _.attempt(*case) == expected