def test_colour_hex_returns_hex_value(self):
        light = PyCololight("1.1.1.1")

        expected_responses = ["80", "06", "a6", "b4", "bf", "c1", "c3"]

        test_colours = [
            ["Breath", "Red, Green, Blue", 1],
            ["Breath", "Red", 13],
            ["Flicker", "Azure", 1],
            ["Mood", "Orange", 1],
            ["Selected", "Savasana", 1],
            ["Selected", "Sunrise", 1],
            ["Selected", "Unicorns", 1],
        ]

        for index, colour in enumerate(test_colours):
            colour_hex = light._colour_hex(colour[0], colour[1], colour[2])
            assert colour_hex == expected_responses[index]
    def test_colour_hex_raises_exeception_when_bad_colour(self):
        light = PyCololight("1.1.1.1")

        with pytest.raises(ColourException):
            light._colour_hex("Mood", "bad_colour", 1)
    def test_colour_hex_raises_exeception_when_bad_scheme(self):
        light = PyCololight("1.1.1.1")

        with pytest.raises(ColourSchemeException):
            light._colour_hex("bad_scheme", "colour", 1)