# Path: canvas/lib/color.py
# class Color:
# 
#     colour = None
# 
#     def __init__(self, *args, **kwargs):
#         self.colour = ColorBase(*args, **kwargs)
# 
#     def __getattr__(self, attr):
#         return self.colour.__getattr__(attr)
# 
#     @property
#     def hex(self):
#         color = re.sub('^#', '', self.colour.__getattr__('hex_l'))
#         return color
# 
#     def __str__(self):
#         return "%s" % self.colour.__getattr__('web')
# 
#     def __repr__(self):
#         return "<Color %s>" % self.colour.__getattr__('web')


import unittest
from canvas.lib.color import Color

class ColorTest(unittest.TestCase):

    def test_full_hex_color(self):
        color = Color('red')
        self.assertEqual(color.hex, 'ff0000')

if __name__ == "__main__" and __package__ is None:

# Path: canvas/lib/color.py
# class Color:
# 
#     colour = None
# 
#     def __init__(self, *args, **kwargs):
#         self.colour = ColorBase(*args, **kwargs)
# 
#     def __getattr__(self, attr):
#         return self.colour.__getattr__(attr)
# 
#     @property
#     def hex(self):
#         color = re.sub('^#', '', self.colour.__getattr__('hex_l'))
#         return color
# 
#     def __str__(self):
#         return "%s" % self.colour.__getattr__('web')
# 
#     def __repr__(self):
#         return "<Color %s>" % self.colour.__getattr__('web')


# Path: tests/color_test.py
import unittest
from canvas.lib.color import Color


class ColorTest(unittest.TestCase):

    def test_full_hex_color(self):
        color = Color('red')
        self.assertEqual(color.hex, 'ff0000')

if __name__ == "__main__" and __package__ is None:

    unittest.main()  # pragma: no cover