def test_bool_from_any_raises_type_error(): with pytest.raises(TypeError): bool_from_any(None)
def test_bool_from_any_raises_value_error(): with pytest.raises(ValueError): bool_from_any("abc")