aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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__":