summaryrefslogtreecommitdiffstats
path: root/test/t/test_vgcreate.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/t/test_vgcreate.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/t/test_vgcreate.py b/test/t/test_vgcreate.py
new file mode 100644
index 0000000..40c1773
--- /dev/null
+++ b/test/t/test_vgcreate.py
@@ -0,0 +1,13 @@
+import pytest
+
+
+class TestVgcreate:
+ @pytest.mark.complete(
+ "vgcreate -", require_cmd=True, xfail="! vgcreate --help &>/dev/null"
+ )
+ def test_1(self, completion):
+ assert completion
+
+ @pytest.mark.complete("vgcreate __does_not_exist__", require_cmd=True)
+ def test_2(self, completion):
+ assert not completion