def test_comp_angle_opening(self, test_dict):
     """Check that the computation of the average opening angle iscorrect
     """
     test_obj = test_dict["test_obj"]
     a = test_obj.slot.comp_angle_opening()
     self.assertEqual(a, 2 * arcsin(test_obj.slot.W0 / (2 * 0.1325)))
     # Check that the analytical method returns the same result as the numerical one
     b = comp_angle_opening(test_obj.slot)
     msg = "Return " + str(a) + " expected " + str(b)
     self.assertAlmostEqual((a - b) / a, 0, delta=DELTA, msg=msg)
    def test_comp_angle_opening(self, test_dict):
        """Check that the computation of the average opening angle iscorrect
        """
        test_obj = test_dict["test_obj"]
        a = test_obj.slot.comp_angle_opening()
        b = test_dict["Ao"]
        msg = "Return " + str(a) + " expected " + str(b)
        self.assertAlmostEqual((a - b) / a, 0, delta=DELTA, msg=msg)

        b = comp_angle_opening(test_obj.slot)
        msg = "Return " + str(a) + " expected " + str(b)
        self.assertAlmostEqual((a - b) / a, 0, delta=DELTA, msg=msg)