diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 21:14:02 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 21:14:02 +1000 |
| commit | e8475c05ea28205a02afe84b591133cf0963956c (patch) | |
| tree | 11ea0fd907db7fb7bcf94377b854b02c72bb1c64 /tests/test_colors.py | |
| parent | 2fa6215b55f8eb838950ea930033c50cc626e5d9 (diff) | |
tests: Test file import
Diffstat (limited to 'tests/test_colors.py')
| -rwxr-xr-x | tests/test_colors.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_colors.py b/tests/test_colors.py index 506bbc9..52957fd 100755 --- a/tests/test_colors.py +++ b/tests/test_colors.py @@ -28,6 +28,11 @@ class TestGenColors(unittest.TestCase): colors.get("tests/test_files/test.jpg") self.assertEqual(fake_out.getvalue().strip(), message) + def test_color_import(self): + """> Read colors from a file.""" + result = colors.file("tests/test_files/test_file.json") + self.assertEqual(result["colors"]["color0"], "#1F211E") + if __name__ == "__main__": unittest.main() |
