def test_align_rotations(self):
    'Tests the alignment of rotations.'
    input_list = [Rot3.RzRyRx(np.deg2rad(0), np.deg2rad((- 10)), 0), Rot3.RzRyRx(np.deg2rad(0), np.deg2rad(30), 0)]
    ref_list = [Rot3.RzRyRx(np.deg2rad(0), np.deg2rad(80), 0), Rot3.RzRyRx(np.deg2rad(0), np.deg2rad((- 40)), 0)]
    computed = geometry_comparisons.align_rotations(input_list, ref_list)
    expected = [Rot3.RzRyRx(0, np.deg2rad(80), 0), Rot3.RzRyRx(0, np.deg2rad(120), 0)]
    self.__assert_equality_on_rot3s(computed, expected)
Tests the alignment of rotations.
def test_align_rotations(self):
    
    input_list = [Rot3.RzRyRx(np.deg2rad(0), np.deg2rad((- 10)), 0), Rot3.RzRyRx(np.deg2rad(0), np.deg2rad(30), 0)]
    ref_list = [Rot3.RzRyRx(np.deg2rad(0), np.deg2rad(80), 0), Rot3.RzRyRx(np.deg2rad(0), np.deg2rad((- 40)), 0)]
    computed = geometry_comparisons.align_rotations(input_list, ref_list)
    expected = [Rot3.RzRyRx(0, np.deg2rad(80), 0), Rot3.RzRyRx(0, np.deg2rad(120), 0)]
    self.__assert_equality_on_rot3s(computed, expected)