@patch('gtsfm.utils.geometry_comparisons.align_rotations', return_value=[Rot3.RzRyRx(0, np.deg2rad(32), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 22))), Rot3.RzRyRx(0, 0, np.deg2rad(83))])
def test_compare_rotations_with_all_valid_rot3s_success(self, align_rotations_mocked):
    'Tests the comparison results on list of rotations.'
    aRi_list = [Rot3.RzRyRx(0, np.deg2rad(25), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 20))), Rot3.RzRyRx(0, 0, np.deg2rad(80))]
    bRi_list = [Rot3.RzRyRx(0, np.deg2rad(31), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 22))), Rot3.RzRyRx(0, 0, np.deg2rad(77.5))]
    self.assertTrue(geometry_comparisons.compare_rotations(aRi_list, bRi_list, 10))
    align_rotations_mocked.assert_called_once()
Tests the comparison results on list of rotations.
@patch('gtsfm.utils.geometry_comparisons.align_rotations', return_value=[Rot3.RzRyRx(0, np.deg2rad(32), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 22))), Rot3.RzRyRx(0, 0, np.deg2rad(83))])
def test_compare_rotations_with_all_valid_rot3s_success(self, align_rotations_mocked):
    
    aRi_list = [Rot3.RzRyRx(0, np.deg2rad(25), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 20))), Rot3.RzRyRx(0, 0, np.deg2rad(80))]
    bRi_list = [Rot3.RzRyRx(0, np.deg2rad(31), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 22))), Rot3.RzRyRx(0, 0, np.deg2rad(77.5))]
    self.assertTrue(geometry_comparisons.compare_rotations(aRi_list, bRi_list, 10))
    align_rotations_mocked.assert_called_once()