예제 #1
0
def test_get_width_fail(obj):
    with pytest.raises(ValueError):
        get_width(obj)
예제 #2
0
def test_get_width(obj, width):
    assert get_width(obj) == width