summaryrefslogtreecommitdiff
path: root/tests/test_sequences.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_sequences.py')
-rwxr-xr-xtests/test_sequences.py9
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__":