diff options
| author | Dylan Araps <[email protected]> | 2017-08-12 18:42:27 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-08-12 18:42:27 +1000 |
| commit | 8be48c07fff889ed085744cc0cf585b6d0b71a89 (patch) | |
| tree | 839edfa96574721cc6fc82ef18059d75ebef792e /tests/test_sequences.py | |
| parent | version: bump (diff) | |
| parent | tests: Add a test for sequence order. (diff) | |
| download | pywal-8be48c07fff889ed085744cc0cf585b6d0b71a89.tar.xz pywal-8be48c07fff889ed085744cc0cf585b6d0b71a89.zip | |
Merge pull request #79 from dylanaraps/35
general: Add support for Python 3.5
Diffstat (limited to 'tests/test_sequences.py')
| -rwxr-xr-x | tests/test_sequences.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_sequences.py b/tests/test_sequences.py index 66f4084..8034da7 100755 --- a/tests/test_sequences.py +++ b/tests/test_sequences.py @@ -32,7 +32,14 @@ class Testsequences(unittest.TestCase): def test_set_iterm_tab_color(self): """> Create iterm tab color sequences""" result = sequences.set_iterm_tab_color(COLORS["special"]["background"]) - self.assertEqual(len(result), 3) + self.assertEqual(len(result), 104) + + def test_sequence_order(self): + """> Test that the sequences are in order.""" + result = sequences.create_sequences(COLORS, vte=False).split("\007") + self.assertEqual(result[2], "\x1b]4;2;#CC6A93") + self.assertEqual(result[15], "\x1b]4;15;#F5F1F4") + self.assertEqual(result[8], "\x1b]4;8;#666666") if __name__ == "__main__": |