@patch('gtsfm.utils.geometry_comparisons.align_rotations', return_value=[Rot3.RzRyRx(0, np.deg2rad(25), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 20)))])
def test_compare_rotations_with_nones_at_same_indices(self, align_rotations_mocked):
    'Tests the comparison results on list of rotations.'
    list1 = [Rot3.RzRyRx(0, np.deg2rad(25), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 20))), None]
    list2 = [Rot3.RzRyRx(0, np.deg2rad(31), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 22))), None]
    threshold_degrees = 10
    self.assertTrue(geometry_comparisons.compare_rotations(list1, list2, threshold_degrees))
    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(25), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 20)))])
def test_compare_rotations_with_nones_at_same_indices(self, align_rotations_mocked):
    
    list1 = [Rot3.RzRyRx(0, np.deg2rad(25), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 20))), None]
    list2 = [Rot3.RzRyRx(0, np.deg2rad(31), 0), Rot3.RzRyRx(0, 0, np.deg2rad((- 22))), None]
    threshold_degrees = 10
    self.assertTrue(geometry_comparisons.compare_rotations(list1, list2, threshold_degrees))
    align_rotations_mocked.assert_called_once()