Пример #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