def METHOD_NAME(self):
    """ Test that changing min_value and max_value does not break map. """
    datarange = self.colormap.range
    # Perform a dummy mapping.
    a = ArrayDataSource(array([0.0, 0.5, 1.0]))
    datarange.add(a)
    b = self.colormap.map_screen(a.get_data())
    datarange.remove(a)
    # Update the min_value.
    datarange.low = -1.0
    # Test that the map still works.
    a = ArrayDataSource(array([-1.0, 0.0, 1.0]))
    datarange.add(a)
    b = self.colormap.map_screen(a.get_data())
    datarange.remove(a)
    expected = array([0.0, 0.5, 1.0])
    close = allclose(ravel(b[:, :1]), expected, atol=0.02)
    self.assertTrue(
        close,
        "Changing min value broke map.  Expected %s.  Got %s"
        % (expected, b[:, :1]),
    )
    # Update the max_value.
    datarange.high = 0.0
    # Test that the map still works.
    a = ArrayDataSource(array([-1.0, -0.5, 0.0]))
    datarange.add(a)
    b = self.colormap.map_screen(a.get_data())
    datarange.remove(a)
    expected = array([0.0, 0.5, 1.0])
    close = allclose(ravel(b[:, :1]), expected, atol=0.02)
    self.assertTrue(
        close,
        "Changing min value broke map.  Expected %s.  Got %s"
        % (expected, b[:, :1]),
    )