class_docstr: Tests the color_palette function.
docstr: Test colorbrewer qualitative palettes
docstr_tok: ["Test","colorbrewer","qualitative","palettes"]
code: def test_cbrewer_qual(self):
      """
      Test colorbrewer qualitative palettes
      """
      pal_short = mpl_palette("Set1", 4)
      pal_long = mpl_palette("Set1", 6)
      assert pal_short == pal_long[:4]
  
      pal_full = palettes.mpl_palette("Set2", 8)
      pal_long = palettes.mpl_palette("Set2", 10)
      assert pal_full == pal_long[:8]
  
imports: import pytest
  import numpy
  import matplotlib
  from yellowbrick.exceptions import *
  from yellowbrick.style.palettes import *
  from yellowbrick.style.colors import get_color_cycle
  from yellowbrick.style.rcmod import set_aesthetic, set_palette
  from yellowbrick.style.palettes import color_sequence, color_palette
  from yellowbrick.style.palettes import ColorPalette, PALETTES, SEQUENCES
  from tests.base import VisualTestCase
label_desc: Use image node_id 11 for calling the TestColorPaletteFunction obj's underlying member method code with example usage: obj.test_cbrewer_qual() without return types