def test_area_Setter():
    c = Circle(2)
    try:
        c.area = 42
    except AttributeError:
        assert True
Exemple #2
0
def test_set_area():
    c = Circle(10)
    with pytest.raises(AttributeError):
        c.area = 100