class_docstr: Class of Unit test for style_utils
class_docstr_tok: ["Class","of","Unit","test","for","style_utils"]
docstr: test of select_palette
docstr_tok: ["test","of","select_palette"]
code: def test_select_palette(self):
      """
      test of select_palette
      """
      available_palettes = colors_loading()
      default_dict = select_palette(available_palettes, "default")
      assert len(list(default_dict.keys())) > 0
      with self.assertRaises(ValueError):
          select_palette(available_palettes, "ERROR_palette")
  
file_path: shapash/tests/unit_tests/style/test_style_utils.py
imports: import unittest
  import re
  from shapash.style.style_utils import colors_loading, select_palette, define_style, convert_str_color_to_plt_format, get_pyplot_color
label_desc: Use image node_id 4 for calling the TestStyle_utils obj's underlying member method code with example usage: obj.test_select_palette() without return types