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

        expected_responses = [("05", "10"), ("05", "80"), ("06", "10"), ("06", "70")]

        test_modes = [3, 8, 17, 26]

        for index, mode in enumerate(test_modes):
            mode_hex = light._mode_hex(mode)
            assert mode_hex == expected_responses[index]
    def test_mode_hex_raises_exeception_when_bad_mode(self):
        light = PyCololight("1.1.1.1")

        with pytest.raises(ModeExecption):
            light._mode_hex(0)