aboutsummaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2017-07-08 22:28:45 +1000
committerDylan Araps <[email protected]>2017-07-08 22:28:45 +1000
commit06a5301fa4f0de823be0e7998900c977b509d0d4 (patch)
tree6f168107150f66c4c1719d6821bb78a2927c55ab /tests/test_util.py
parentcolors: Set xclock colors. (diff)
downloadpywal-06a5301fa4f0de823be0e7998900c977b509d0d4.tar.xz
pywal-06a5301fa4f0de823be0e7998900c977b509d0d4.zip
colors: Fix xclock colors.
Diffstat (limited to 'tests/test_util.py')
-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__":