示例#1
0
def test_error_if_not_figure(item):
    circle_1 = Circle(1)
    with pytest.raises(Exception):
        circle_1.add_area(item)
示例#2
0
def test_circles_equals_area_after_add_area():
    circle_1 = Circle(1)
    circle_2 = Circle(2)
    assert circle_1.add_area(circle_2) == circle_2.add_area(circle_1)