pywal/tests/test_gen_colors.py

18 lines
391 B
Python
Raw Normal View History

2017-06-27 09:30:31 +02:00
"""Test gen functions."""
import unittest
from pywal import gen_colors
class TestGenColors(unittest.TestCase):
"""Test the gen_colors functions."""
2017-06-27 09:43:14 +02:00
def test_gen_colors(self):
"""> Generate a colorscheme."""
result = gen_colors.gen_colors("tests/test_files/test.jpg")
self.assertEqual(result[0], "#0F191A")
2017-06-27 09:30:31 +02:00
if __name__ == "__main__":
unittest.main()