diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-08 22:28:45 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-08 22:28:45 +1000 |
| commit | 06a5301fa4f0de823be0e7998900c977b509d0d4 (patch) | |
| tree | 6f168107150f66c4c1719d6821bb78a2927c55ab /tests | |
| parent | 36feca84775b98d17c662cb1b3198b8e1dd6b23f (diff) | |
colors: Fix xclock colors.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/test_util.py | 6 |
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__": |
