class_docstr: Test utilities used with colormaps.
class_docstr_tok: ["Test","utilities","used","with","colormaps","."]
docstr: Test that colormaps in trollimage can be loaded.
code: def test_cmap_from_trollimage(self):
      """Test that colormaps in trollimage can be loaded."""
      from satpy.enhancements import create_colormap
  
      cmap = create_colormap({"colors": "pubu"})
      from trollimage.colormap import pubu
  
      np.testing.assert_equal(cmap.colors, pubu.colors)
      np.testing.assert_equal(cmap.values, pubu.values)
  
imports: import contextlib
  import os
  from tempfile import NamedTemporaryFile
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.enhancements import create_colormap, on_dask_array, on_separate_bands, using_map_blocks
label_desc: Use image node_id 6 for calling the TestColormapLoading obj's underlying member method code with example usage: obj.test_cmap_from_trollimage() without return types