# Path: bibliopixel/colors/palettes.py
# def get(name=None):
# def set_default(palette):
# PROJECT_PALETTES = {}
# BUILT_IN_PALETTES = {
#     # "Classic" palettes from old BP
#     'rainbow': _colors(conversions.HUE_RAINBOW),
#     'raw': _colors(conversions.HUE_RAW),
#     'spectrum': _colors(conversions.HUE_SPECTRUM),
#     'three_sixty': _colors(conversions.HUE_360),
# 
#     # Custom palettes
#     'flag': _colors('red, white, blue'),
#     'checker': _colors('white, black', serpentine=True),
#     'primary': _colors('red, green, blue'),
#     'secondary': _colors('yellow, magenta, cyan'),
#     'eight': _colors('black, red, yellow, green, cyan, blue, magenta, white'),
#     'van_gogh': _colors('gold, teal, spring green 3, ivory black'),
#     'trendy': _colors('medium aquamarine, orange red, chocolate 1, gainsboro'),
#     'muted': _colors('navajo white 3, ivory 3, white smoke, ivory black'),
#     'bold': _colors('black, dodger blue 4, hot pink 4, orange red 3'),
#     'clean': _colors('light cyan 2, dark gray, brown 1, snow 2'),
#     'warm': _colors('snow 3, dark grey, indian red 4, burly wood 3'),
#     'sharp': _colors('sea green 3, ivory black, burly wood 2, gray'),
#     'pastel': _colors('azure 3, eggshell, sienna 2, goldenrod'),
#     'tints': _colors('plum 4, dark grey, antique white 2, linen'),
#     'splash': _colors('steel blue 3, gainsboro, gold, tan 2'),
#     'energy': _colors('magenta, yellow, cyan, beige'),
# }
#     _DEFAULT_PALETTE = p


import unittest
from fractions import Fraction
from bibliopixel.colors import palettes
from bibliopixel.colors.classic import Black, White, Red, Green, Blue



class PalettesTest(unittest.TestCase):
    def test_empty(self):
        self.assertIs(palettes.get('no such name'), None)

    def test_simple(self):

# Path: bibliopixel/colors/palettes.py
# def get(name=None):
# def set_default(palette):
# PROJECT_PALETTES = {}
# BUILT_IN_PALETTES = {
#     # "Classic" palettes from old BP
#     'rainbow': _colors(conversions.HUE_RAINBOW),
#     'raw': _colors(conversions.HUE_RAW),
#     'spectrum': _colors(conversions.HUE_SPECTRUM),
#     'three_sixty': _colors(conversions.HUE_360),
# 
#     # Custom palettes
#     'flag': _colors('red, white, blue'),
#     'checker': _colors('white, black', serpentine=True),
#     'primary': _colors('red, green, blue'),
#     'secondary': _colors('yellow, magenta, cyan'),
#     'eight': _colors('black, red, yellow, green, cyan, blue, magenta, white'),
#     'van_gogh': _colors('gold, teal, spring green 3, ivory black'),
#     'trendy': _colors('medium aquamarine, orange red, chocolate 1, gainsboro'),
#     'muted': _colors('navajo white 3, ivory 3, white smoke, ivory black'),
#     'bold': _colors('black, dodger blue 4, hot pink 4, orange red 3'),
#     'clean': _colors('light cyan 2, dark gray, brown 1, snow 2'),
#     'warm': _colors('snow 3, dark grey, indian red 4, burly wood 3'),
#     'sharp': _colors('sea green 3, ivory black, burly wood 2, gray'),
#     'pastel': _colors('azure 3, eggshell, sienna 2, goldenrod'),
#     'tints': _colors('plum 4, dark grey, antique white 2, linen'),
#     'splash': _colors('steel blue 3, gainsboro, gold, tan 2'),
#     'energy': _colors('magenta, yellow, cyan, beige'),
# }
#     _DEFAULT_PALETTE = p


# Path: test/bibliopixel/colors/palettes_test.py
import unittest
from fractions import Fraction
from bibliopixel.colors import palettes
from bibliopixel.colors.classic import Black, White, Red, Green, Blue




class PalettesTest(unittest.TestCase):
    def test_empty(self):
        self.assertIs(palettes.get('no such name'), None)

    def test_simple(self):

        p = palettes.get('flag')