@patch('gtsfm.utils.geometry_comparisons.align_rotations', return_value=None)
def test_compare_rotations_with_nones_at_different_indices(self, aligned_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), None, Rot3.RzRyRx(0, 0, np.deg2rad((- 22)))]
    self.assertFalse(geometry_comparisons.compare_rotations(list1, list2, 10))
    aligned_rotations_mocked.assert_not_called()
Tests the comparison results on list of rotations.
@patch('gtsfm.utils.geometry_comparisons.align_rotations', return_value=None)
def test_compare_rotations_with_nones_at_different_indices(self, aligned_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), None, Rot3.RzRyRx(0, 0, np.deg2rad((- 22)))]
    self.assertFalse(geometry_comparisons.compare_rotations(list1, list2, 10))
    aligned_rotations_mocked.assert_not_called()