コード例 #1
0
def test_diameter_update():
    """This will test after the circles radius has been initial created to see if modifying the diameter
     will then update the radius correctly"""
    circle = Cir(12)
    circle.dia = 20
    assert circle.rad == 10
    assert circle.dia == 20