def test_xlimit_single_set(self):
        self.client.add_layer(self.data)
        self.client.set_component(self.data.id['x'])

        self.client.xlimits = (None, 5)
        assert self.client.xlimits == (-0.5, 5)
        self.client.xlimits = (3, None)
        assert self.client.xlimits == (3, 5)
dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py/TestCategoricalHistogram.test_xlimit_single_set/original