class_docstr: Test get_color_cycle helper function
class_docstr_tok: ["Test","get_color_cycle","helper","function"]
docstr: Test get color cycle with matplotlib 1.5 or later
docstr_tok: ["Test","get","color","cycle","with","matplotlib","1.5","or","later"]
code: def test_mpl_ge_150(self):
      """
      Test get color cycle with matplotlib 1.5 or later
      """
      colors = get_color_cycle()
      cycle = mpl.rcParams["axes.prop_cycle"]
  
      # Ensure the cycle is in fact a cycle
      assert isinstance(cycle, Cycler)
  
      # Ensure that colors is actually a list (might change in the future)
      assert isinstance(colors, list)
  
      # Ensure the cycler and the colors have the same length
      cycle = list(cycle)
      assert len(colors) == len(cycle)
  
      # Ensure the colors and cycle match
      for color, cycle_color in zip(colors, cycle):
          assert color == cycle_color["color"]
  
imports: import sys
  import pytest
  from matplotlib import cm
  from cycler import Cycler
  from sklearn.cluster import KMeans
  from sklearn.datasets import make_blobs
  from yellowbrick.style.colors import *
  from yellowbrick.style.palettes import ColorPalette, PALETTES
  from yellowbrick.cluster.silhouette import SilhouetteVisualizer
  from tests.base import VisualTestCase
label_desc: Use image node_id 2 for calling the TestGetColorCycle obj's underlying member method code with example usage: obj.test_mpl_ge_150() without return types