summaryrefslogtreecommitdiff
path: root/test/t/test_ifstat.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_ifstat.py')
-rw-r--r--test/t/test_ifstat.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/t/test_ifstat.py b/test/t/test_ifstat.py
new file mode 100644
index 00000000..e4d828ee
--- /dev/null
+++ b/test/t/test_ifstat.py
@@ -0,0 +1,19 @@
+import pytest
+
+
+class TestIfstat:
+ @pytest.mark.complete("ifstat -")
+ def test_1(self, completion):
+ assert completion
+
+ @pytest.mark.complete(
+ "ifstat -i ", skipif="ifstat -v | command grep -qF iproute2"
+ )
+ def test_2(self, completion):
+ assert completion
+
+ @pytest.mark.complete(
+ "ifstat -d ", skipif="ifstat -v | command grep -qF iproute2"
+ )
+ def test_3(self, completion):
+ assert completion