コード例 #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