# Path: pwm/ffi/xcb.py
# class XcbError(Exception):
# class Cookie:
# class Xcb:
#     def __init__(self, error):
#     def __str__(self):
#     def __init__(self, name, value):
#     def __getattr__(self, name):
#     def reply(self):
#     def check(self):
#     def __init__(self):
#     def __getattr__(self, name):
#         def request(func, *args, **kwargs):
#     def connect(self, display=None):
#     def mask(self, masks):


import unittest
import pwm.color
import test.util as util
from pwm.ffi.xcb import xcb
# Copyright (c) 2013 Michael Bitzi
# Licensed under the MIT license http://opensource.org/licenses/MIT




class TestColor(unittest.TestCase):
    def setUp(self):
        util.setup()

    def tearDown(self):
        util.tear_down()

    def test_get_pixl(self):
        self.assertEqual(pwm.color.get_pixel("#000000"),
                         xcb.screen.black_pixel)

        self.assertEqual(pwm.color.get_pixel("#ffffff"),

# Path: pwm/ffi/xcb.py
# class XcbError(Exception):
# class Cookie:
# class Xcb:
#     def __init__(self, error):
#     def __str__(self):
#     def __init__(self, name, value):
#     def __getattr__(self, name):
#     def reply(self):
#     def check(self):
#     def __init__(self):
#     def __getattr__(self, name):
#         def request(func, *args, **kwargs):
#     def connect(self, display=None):
#     def mask(self, masks):


# Path: test/test_color.py
import unittest
import pwm.color
import test.util as util
from pwm.ffi.xcb import xcb

# Copyright (c) 2013 Michael Bitzi
# Licensed under the MIT license http://opensource.org/licenses/MIT




class TestColor(unittest.TestCase):
    def setUp(self):
        util.setup()

    def tearDown(self):
        util.tear_down()

    def test_get_pixl(self):
        self.assertEqual(pwm.color.get_pixel("#000000"),
                         xcb.screen.black_pixel)

        self.assertEqual(pwm.color.get_pixel("#ffffff"),

                         xcb.screen.white_pixel)