# Path: libxyz/ui/colors.py
# class Color(object):
# class Foreground(Color):
# class Background(Color):
# class Attribute(Color):
# class BaseHighColor(Color):
# class ForegroundHigh(BaseHighColor):
# class BackgroundHigh(BaseHighColor):
# class Palette(object):
#     def __init__(self, color):
#     def is_color_valid(self, color):
#     def _set_color(self, color):
#     def __str__(self):
#     def __repr__(self):
#     def is_color_valid(self, color):
#     def _set_color(self, color):
#     def convert(cls, config):
#     def __init__(self, name, fg, bg, fg_attrs=None, mono=None,
#                  fg_high=None, bg_high=None):
#     def _fg_get(self):
#     def _fg_set(self, fg):
#     def _bg_get(self):
#     def _bg_set(self, bg):
#     def _fg_attrs_get(self):
#     def _fg_attrs_set(self, attrs):
#     def _mono_get(self):
#     def _mono_set(self, mono):
#     def _fg_high_get(self):
#     def _fg_high_set(self, fg_high):
#     def _bg_high_get(self):
#     def _bg_high_set(self, bg_high):
#     def get_palette(self, display=const.DEFAULT_DISPLAY_DRIVER):
#     def set_fg(self, fg):
#     def set_bg(self, bg):
#     def copy(self):
#     def __call__(self, config):
# 
# Path: libxyz/exceptions.py
# class XYZValueError(XYZError):
#     pass


from nose.tools import raises
from libxyz.ui import colors
from libxyz.exceptions import XYZValueError
import __builtin__
import locale
#-*- coding: utf8 -*
#
# Max E. Kuznecov ~syhpoon <mek@mek.uz.ua> 2008-2009
#
# This file is part of XYZCommander.
# XYZCommander is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# XYZCommander is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser Public License for more details.
# You should have received a copy of the GNU Lesser Public License
# along with XYZCommander. If not, see <http://www.gnu.org/licenses/>.

# UI tests




def setup():
    __builtin__._ = lambda x: x
    __builtin__.xyzenc = locale.getpreferredencoding()

class TestColors(object):
    @raises(XYZValueError)

# Path: libxyz/ui/colors.py
# class Color(object):
# class Foreground(Color):
# class Background(Color):
# class Attribute(Color):
# class BaseHighColor(Color):
# class ForegroundHigh(BaseHighColor):
# class BackgroundHigh(BaseHighColor):
# class Palette(object):
#     def __init__(self, color):
#     def is_color_valid(self, color):
#     def _set_color(self, color):
#     def __str__(self):
#     def __repr__(self):
#     def is_color_valid(self, color):
#     def _set_color(self, color):
#     def convert(cls, config):
#     def __init__(self, name, fg, bg, fg_attrs=None, mono=None,
#                  fg_high=None, bg_high=None):
#     def _fg_get(self):
#     def _fg_set(self, fg):
#     def _bg_get(self):
#     def _bg_set(self, bg):
#     def _fg_attrs_get(self):
#     def _fg_attrs_set(self, attrs):
#     def _mono_get(self):
#     def _mono_set(self, mono):
#     def _fg_high_get(self):
#     def _fg_high_set(self, fg_high):
#     def _bg_high_get(self):
#     def _bg_high_set(self, bg_high):
#     def get_palette(self, display=const.DEFAULT_DISPLAY_DRIVER):
#     def set_fg(self, fg):
#     def set_bg(self, bg):
#     def copy(self):
#     def __call__(self, config):
# 
# Path: libxyz/exceptions.py
# class XYZValueError(XYZError):
#     pass


# Path: libxyz/ui/tests.py
from nose.tools import raises
from libxyz.ui import colors
from libxyz.exceptions import XYZValueError
import __builtin__
import locale

#-*- coding: utf8 -*
#
# Max E. Kuznecov ~syhpoon <mek@mek.uz.ua> 2008-2009
#
# This file is part of XYZCommander.
# XYZCommander is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# XYZCommander is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser Public License for more details.
# You should have received a copy of the GNU Lesser Public License
# along with XYZCommander. If not, see <http://www.gnu.org/licenses/>.

# UI tests




def setup():
    __builtin__._ = lambda x: x
    __builtin__.xyzenc = locale.getpreferredencoding()

class TestColors(object):
    @raises(XYZValueError)

    def testForegroundColor1(self):