@pytest.mark.parametrize('test_dict', Mag14_test)
def test_comp_width_opening(self, test_dict):
    'Check that the computation of the average opening width is correct'
    test_obj = test_dict['test_obj']
    a = test_obj.slot.comp_width_opening()
    point_dict = test_obj.slot._comp_point_coordinate()
    assert (a == pytest.approx(abs((point_dict['Z1'] - point_dict['Z4'])), rel=DELTA))
Check that the computation of the average opening width is correct
@pytest.mark.parametrize('test_dict', Mag14_test)
def test_comp_width_opening(self, test_dict):
    
    test_obj = test_dict['test_obj']
    a = test_obj.slot.comp_width_opening()
    point_dict = test_obj.slot._comp_point_coordinate()
    assert (a == pytest.approx(abs((point_dict['Z1'] - point_dict['Z4'])), rel=DELTA))