

def setup_method(self, method):
    self.data = Data(x=[0, 0, 0, 1, 2, 3, 3, 10, 20], y=[(- 1), (- 1), (- 1), (- 2), (- 2), (- 2), (- 3), (- 5), (- 7)])
    self.subset = self.data.new_subset()
    method.collect = DataCollection(self.data)
    self.client = HistogramClient(self.collect, FIGURE)
    self.axes = self.client.axes
    FIGURE.canvas.draw = MagicMock()
    assert (FIGURE.canvas.draw.call_count == 0)

dataset/ETHPy150Open glue-viz/glue/glue/viewers/histogram/tests/test_client.py TestHistogramClient.setup_method/VarMisuse@102/105 `self`->`method`