def METHOD_NAME(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
    )