summaryrefslogtreecommitdiff
path: root/test/t/test_screen.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_screen.py')
-rw-r--r--test/t/test_screen.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/t/test_screen.py b/test/t/test_screen.py
new file mode 100644
index 00000000..c05e0ce0
--- /dev/null
+++ b/test/t/test_screen.py
@@ -0,0 +1,24 @@
+import pytest
+
+
+class TestScreen:
+ @pytest.mark.complete("screen -")
+ def test_1(self, completion):
+ assert completion
+
+ @pytest.mark.complete("screen -c shared/default/")
+ def test_2(self, completion):
+ assert completion == ["bar", "bar bar.d/", "foo", "foo.d/"]
+
+ @pytest.mark.complete("screen cat ")
+ def test_3(self, completion):
+ assert completion
+
+ # Assume at least vt100 and friends are there
+ @pytest.mark.complete("screen -T vt")
+ def test_4(self, completion):
+ assert completion
+
+ @pytest.mark.complete("screen -T foo cat")
+ def test_5(self, completion):
+ assert completion