1 2 3 4 5 6 7 8 9 10 11 12 13import pytest @pytest.mark.bashcomp(cmd="tsig-keygen") class TestTsigKeygen: @pytest.mark.complete("tsig-keygen ") def test_basic(self, completion): assert not completion @pytest.mark.complete("tsig-keygen -", require_cmd=True) def test_options(self, completion): assert completion