code: def test_make_colorscale(self):
      # test minimum colors length
      color_list = [(0, 0, 0)]
  
      pattern = "You must input a list of colors that has at least two colors."
  
      self.assertRaisesRegex(
          PlotlyError, pattern, colors.make_colorscale, color_list
      )
  
      # test length of colors and scale
      color_list2 = [(0, 0, 0), (1, 1, 1)]
      scale = [0]
  
      pattern2 = "The length of colors and scale must be the same."
  
      self.assertRaisesRegex(
          PlotlyError,
          pattern2,
          colors.make_colorscale,
          color_list2,
          scale,
      )
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_colors/test_colors.py
imports: from unittest import TestCase
  import plotly.tools
  from plotly.exceptions import PlotlyError
  import plotly.colors
label_desc: Use image node_id 5 for calling the TestColors obj's underlying member method code with example usage: obj.test_make_colorscale() without return types