def METHOD_NAME(self):
    values = [
        (0.4, 0.2),
        (0.4, 0.2, 0.3, 1.0, 1.0),
        "notacolor",
        "#66666",
        (0.0, 1.00001, 0.9, 1.0),
        (0.0, -0.00001, 0.9, 1.0),
        (0, -1, 250, 255),
        None,
    ]
    for value in values:
        with self.subTest(value=value):
            with self.assertRaises(TraitError):
                ColorClass(color=value)