class_docstr: Test resolve_colors helper function
class_docstr_tok: ["Test","resolve_colors","helper","function"]
docstr: Truncates default colors when n_colors is smaller than palette
docstr_tok: ["Truncates","default","colors","when","n_colors","is","smaller","than","palette"]
code: def test_resolve_colors_default_truncate(self):
      """
      Truncates default colors when n_colors is smaller than palette
      """
      assert len(get_color_cycle()) > 3
      assert len(resolve_colors(3)) == 3
  
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 TestResolveColors obj's underlying member method code with example usage: obj.test_resolve_colors_default_truncate() without return types