

@pytest.mark.parametrize('prop', ['normed', 'cumulative'])
def test_set_boolean_property(self, prop):
    'Boolean properties should sync with artists'
    self.client.add_layer(self.data)
    self.client.set_component(self.data.components[0])
    setattr(self.client, prop, False)
    for a in self.client._artists:
        assert (not getattr(a, prop))
    setattr(self.client, prop, True)
    for a in self.client._artists:
        assert getattr(a, prop)

dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py TestHistogramClient.test_set_boolean_property/original