diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-20 18:21:42 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-20 18:21:42 -0400 |
commit | e576b1d52a12c48b06c76e9f75fadb1428c5b0d4 (patch) | |
tree | 8644dd5157b4a918c5d3dc2e3dfb7a991326d066 /t/osc_test.py | |
parent | 2b01a56de9184b9e2112b6ed75f70d1a46ffd198 (diff) | |
download | libvt100-python-e576b1d52a12c48b06c76e9f75fadb1428c5b0d4.tar.gz libvt100-python-e576b1d52a12c48b06c76e9f75fadb1428c5b0d4.zip |
test that .process returns the correct value in all cases
Diffstat (limited to 't/osc_test.py')
-rw-r--r-- | t/osc_test.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/t/osc_test.py b/t/osc_test.py index d2b5438..565d6d4 100644 --- a/t/osc_test.py +++ b/t/osc_test.py @@ -4,34 +4,34 @@ class OSCTest(VT100Test): def test_title(self): assert self.vt.title() == "" assert self.vt.icon_name() == "" - self.vt.process("\033]2;it's a title\007") + self.process("\033]2;it's a title\007") assert self.vt.title() == "it's a title" assert self.vt.icon_name() == "" - self.vt.process("\033]2;\007") + self.process("\033]2;\007") assert self.vt.title() == "" assert self.vt.icon_name() == "" def test_icon_name(self): assert self.vt.title() == "" assert self.vt.icon_name() == "" - self.vt.process("\033]1;it's an icon name\007") + self.process("\033]1;it's an icon name\007") assert self.vt.title() == "" assert self.vt.icon_name() == "it's an icon name" - self.vt.process("\033]1;\007") + self.process("\033]1;\007") assert self.vt.title() == "" assert self.vt.icon_name() == "" def test_title_icon_name(self): assert self.vt.title() == "" assert self.vt.icon_name() == "" - self.vt.process("\033]0;it's both\007") + self.process("\033]0;it's both\007") assert self.vt.title() == "it's both" assert self.vt.icon_name() == "it's both" - self.vt.process("\033]0;\007") + self.process("\033]0;\007") assert self.vt.title() == "" assert self.vt.icon_name() == "" def test_unknown_sequence(self): assert self.vt.cell(0, 0).contents() == "" - self.vt.process("\033]499;some long, long string?\007") + self.process("\033]499;some long, long string?\007") assert self.vt.cell(0, 0).contents() == "" |