summaryrefslogtreecommitdiffstats
path: root/test/t/test_ifdown.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_ifdown.py')
-rw-r--r--test/t/test_ifdown.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/t/test_ifdown.py b/test/t/test_ifdown.py
new file mode 100644
index 0000000..e91e4ba
--- /dev/null
+++ b/test/t/test_ifdown.py
@@ -0,0 +1,14 @@
+import pytest
+
+from conftest import in_container
+
+
+class TestIfdown:
+ @pytest.mark.xfail(in_container(), reason="Probably fails in a container")
+ @pytest.mark.complete("ifdown ")
+ def test_1(self, completion):
+ assert completion
+
+ @pytest.mark.complete("ifdown bash-completion ")
+ def test_2(self, completion):
+ assert not completion