class_docstr: Tests the color_palette function.
docstr: Test modifying the current palette with a simple palette
docstr_tok: ["Test","modifying","the","current","palette","with","a","simple","palette"]
code: def test_current_palette(self):
      """
      Test modifying the current palette with a simple palette
      """
      pal = color_palette(["red", "blue", "green"], 3)
      set_palette(pal, 3)
      assert pal == get_color_cycle()
  
      # Reset the palette
      set_aesthetic()
  
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 1 for calling the TestColorPaletteFunction obj's underlying member method code with example usage: obj.test_current_palette() without return types