@pytest.mark.parametrize('test_dict', Mag14_test)
def test_comp_angle_opening(self, test_dict):
    'Check that the computation of the average opening angle is correct'
    test_obj = test_dict['test_obj']
    a = test_obj.slot.comp_angle_opening()
    assert (a == pytest.approx(test_dict['Ao'], rel=DELTA))
    b = comp_angle_opening(test_obj.slot)
    msg = ((('Return ' + str(a)) + ' expected ') + str(b))
    assert (a == pytest.approx(b, rel=DELTA))
Check that the computation of the average opening angle is correct
@pytest.mark.parametrize('test_dict', Mag14_test)
def test_comp_angle_opening(self, test_dict):
    
    test_obj = test_dict['test_obj']
    a = test_obj.slot.comp_angle_opening()
    assert (a == pytest.approx(test_dict['Ao'], rel=DELTA))
    b = comp_angle_opening(test_obj.slot)
    msg = ((('Return ' + str(a)) + ' expected ') + str(b))
    assert (a == pytest.approx(b, rel=DELTA))