def METHOD_NAME(self, element, dim, log=False):
    plot = bokeh_renderer.get_plot(element)
    plot.initialize_plot()
    cmapper = plot.handles['color_mapper']
    low, high = element.range(dim)
    self.assertEqual(cmapper.low, low)
    self.assertEqual(cmapper.high, high)
    mapper_type = LogColorMapper if log else LinearColorMapper
    self.assertTrue(isinstance(cmapper, mapper_type))