# Path: pywal/sequences.py
# def set_special(index, color, iterm_name="h", alpha=100):
# def set_color(index, color):
# def set_iterm_tab_color(color):
# def create_sequences(colors, vte_fix=False):
# def send(colors, cache_dir=CACHE_DIR, to_send=True, vte_fix=False):
# 
# Path: pywal/util.py
# class Color:
#     def __init__(self, hex_color):
#     def __str__(self):
#     def rgb(self):
#     def xrgba(self):
#     def rgba(self):
#     def alpha(self):
#     def alpha_dec(self):
#     def decimal(self):
#     def decimal_strip(self):
#     def octal(self):
#     def octal_strip(self):
#     def strip(self):
#     def red(self):
#     def green(self):
#     def blue(self):
#     def lighten(self, percent):
#     def darken(self, percent):
#     def saturate(self, percent):
# def read_file(input_file):
# def read_file_json(input_file):
# def read_file_raw(input_file):
# def save_file(data, export_file):
# def save_file_json(data, export_file):
# def create_dir(directory):
# def setup_logging():
# def hex_to_rgb(color):
# def hex_to_xrgba(color):
# def rgb_to_hex(color):
# def darken_color(color, amount):
# def lighten_color(color, amount):
# def blend_color(color, color2):
# def saturate_color(color, amount):
# def rgb_to_yiq(color):
# def disown(cmd):
# def get_pid(name):


import unittest
import platform
from pywal import sequences
from pywal import util
                                       "h", alpha)

        if platform.uname()[0] == "Darwin":
            self.assertEqual(result, "\033]Ph1F211E\033\\")
        else:
            self.assertEqual(result, "\033]11;#1F211E\033\\")

    def test_set_special_alpha(self):
        """> Create special escape sequence with alpha."""
        alpha = "99"
        result = sequences.set_special(11,
                                       COLORS["special"]["background"],
                                       "h", alpha)

        if platform.uname()[0] == "Darwin":
            self.assertEqual(result, "\033]Ph1F211E\033\\")
        else:
            self.assertEqual(result, "\033]11;[99]#1F211E\033\\")

    def test_set_color(self):
        """> Create color escape sequence."""
        result = sequences.set_color(11, COLORS["colors"]["color0"])

        if platform.uname()[0] == "Darwin":
            self.assertEqual(result, "\033]Pb1F211E\033\\")
        else:
            self.assertEqual(result, "\033]4;11;#1F211E\033\\")

    def test_set_iterm_tab_color(self):
        """> Create iterm tab color sequences"""

# Path: pywal/sequences.py
# def set_special(index, color, iterm_name="h", alpha=100):
# def set_color(index, color):
# def set_iterm_tab_color(color):
# def create_sequences(colors, vte_fix=False):
# def send(colors, cache_dir=CACHE_DIR, to_send=True, vte_fix=False):
# 
# Path: pywal/util.py
# class Color:
#     def __init__(self, hex_color):
#     def __str__(self):
#     def rgb(self):
#     def xrgba(self):
#     def rgba(self):
#     def alpha(self):
#     def alpha_dec(self):
#     def decimal(self):
#     def decimal_strip(self):
#     def octal(self):
#     def octal_strip(self):
#     def strip(self):
#     def red(self):
#     def green(self):
#     def blue(self):
#     def lighten(self, percent):
#     def darken(self, percent):
#     def saturate(self, percent):
# def read_file(input_file):
# def read_file_json(input_file):
# def read_file_raw(input_file):
# def save_file(data, export_file):
# def save_file_json(data, export_file):
# def create_dir(directory):
# def setup_logging():
# def hex_to_rgb(color):
# def hex_to_xrgba(color):
# def rgb_to_hex(color):
# def darken_color(color, amount):
# def lighten_color(color, amount):
# def blend_color(color, color2):
# def saturate_color(color, amount):
# def rgb_to_yiq(color):
# def disown(cmd):
# def get_pid(name):


# Path: tests/test_sequences.py
import unittest
import platform
from pywal import sequences
from pywal import util

                                       "h", alpha)

        if platform.uname()[0] == "Darwin":
            self.assertEqual(result, "\033]Ph1F211E\033\\")
        else:
            self.assertEqual(result, "\033]11;#1F211E\033\\")

    def test_set_special_alpha(self):
        """> Create special escape sequence with alpha."""
        alpha = "99"
        result = sequences.set_special(11,
                                       COLORS["special"]["background"],
                                       "h", alpha)

        if platform.uname()[0] == "Darwin":
            self.assertEqual(result, "\033]Ph1F211E\033\\")
        else:
            self.assertEqual(result, "\033]11;[99]#1F211E\033\\")

    def test_set_color(self):
        """> Create color escape sequence."""
        result = sequences.set_color(11, COLORS["colors"]["color0"])

        if platform.uname()[0] == "Darwin":
            self.assertEqual(result, "\033]Pb1F211E\033\\")
        else:
            self.assertEqual(result, "\033]4;11;#1F211E\033\\")

    def test_set_iterm_tab_color(self):
        """> Create iterm tab color sequences"""

        result = sequences.set_iterm_tab_color(COLORS["special"]["background"])