def test_no_double_jitter(self):
        cat_comp = CategoricalComponent(self.array_data)
        second_comp = CategoricalComponent(self.array_data)
        cat_comp.jitter(method='uniform')
        delta = np.abs(cat_comp.codes - second_comp.codes).sum()
        assert delta > 0
        second_comp.jitter(method='uniform')
        second_comp.jitter(method='uniform')
        np.testing.assert_equal(cat_comp.codes,
                                second_comp.codes,
                                "Data double jittered!")
dataset/ETHPy150Open glue-viz/glue/glue/core/tests/test_component.py/TestCategoricalComponent.test_no_double_jitter/original