summaryrefslogtreecommitdiff
path: root/test/t/test_ifup.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_ifup.py')
-rw-r--r--test/t/test_ifup.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/t/test_ifup.py b/test/t/test_ifup.py
new file mode 100644
index 00000000..62d8eb4a
--- /dev/null
+++ b/test/t/test_ifup.py
@@ -0,0 +1,18 @@
+import pytest
+
+from conftest import in_docker
+
+
+class TestIfup:
+ @pytest.mark.xfail(in_docker(), reason="Probably fails in docker")
+ @pytest.mark.complete("ifup ")
+ def test_1(self, completion):
+ assert completion
+
+ @pytest.mark.complete("ifup --", skipif="! ifup --help &>/dev/null")
+ def test_2(self, completion):
+ assert completion
+
+ @pytest.mark.complete("ifup bash-completion ")
+ def test_3(self, completion):
+ assert not completion