summaryrefslogtreecommitdiffstats
path: root/test/t/test_pidof.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_pidof.py')
-rw-r--r--test/t/test_pidof.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/t/test_pidof.py b/test/t/test_pidof.py
new file mode 100644
index 0000000..c33a4d3
--- /dev/null
+++ b/test/t/test_pidof.py
@@ -0,0 +1,15 @@
+import pytest
+
+
+class TestPidof:
+
+ # "p": Assume that our process name completion runs ps
+ @pytest.mark.complete("pidof p")
+ def test_1(self, completion):
+ assert completion
+
+ @pytest.mark.complete(
+ "pidof -", require_cmd=True, xfail="! pidof --help &>/dev/null"
+ )
+ def test_2(self, completion):
+ assert completion