summaryrefslogtreecommitdiff
path: root/test/t/test_sysctl.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_sysctl.py')
-rw-r--r--test/t/test_sysctl.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/t/test_sysctl.py b/test/t/test_sysctl.py
new file mode 100644
index 00000000..773b5910
--- /dev/null
+++ b/test/t/test_sysctl.py
@@ -0,0 +1,14 @@
+import pytest
+
+
+class TestSysctl:
+ @pytest.mark.complete("sysctl -")
+ def test_1(self, completion):
+ assert completion
+
+ @pytest.mark.complete(
+ "sysctl kern",
+ skipif="! sysctl -N -a 2>/dev/null | " "command grep -q ^kern",
+ )
+ def test_2(self, completion):
+ assert completion