summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-08 22:28:45 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-08 22:28:45 +1000
commit06a5301fa4f0de823be0e7998900c977b509d0d4 (patch)
tree6f168107150f66c4c1719d6821bb78a2927c55ab /tests
parent36feca84775b98d17c662cb1b3198b8e1dd6b23f (diff)
colors: Fix xclock colors.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_util.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 67ec3f7..9cb908a 100755
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -69,8 +69,10 @@ class TestUtil(unittest.TestCase):
result = util.hex_to_rgb("#98AEC2")
self.assertEqual(result, "152,174,194")
- # Figure out how to test this.
- # def test_disown(self):
+ def test_hex_to_xrgba(self):
+ """> Convert #98AEC2 to XRGBA."""
+ result = util.hex_to_xrgba("#98AEC2")
+ self.assertEqual(result, "98/ae/c2/ff")
if __name__ == "__main__":