general: Rename set_colors to sequences

This commit is contained in:
Dylan Araps
2017-06-30 10:15:59 +10:00
parent 930c3c8e40
commit 23571cc620
7 changed files with 52 additions and 54 deletions

View File

@ -12,6 +12,12 @@ COLORS = util.read_file_json("tests/test_files/test_file.json")
class TestUtil(unittest.TestCase):
"""Test the util functions."""
def test_set_grey(self):
"""> Get grey color based on brightness of color0"""
colors = [list(COLORS["colors"].values())]
result = util.set_grey(colors[0])
self.assertEqual(result, "#999999")
def test_read_file(self):
"""> Read colors from a file."""
result = util.read_file("tests/test_files/test_file")