def test_get_width_fail(obj): with pytest.raises(ValueError): get_width(obj)
def test_get_width(obj, width): assert get_width(obj) == width