summaryrefslogtreecommitdiffstats
path: root/test/t/test_ssh_keyscan.py
blob: ee65832d5ec5d8c25d5f63cab4264866da926896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import pytest


@pytest.mark.bashcomp(
    cmd="ssh-keyscan",
)
class TestSshKeyscan:
    @pytest.mark.complete("ssh-keyscan ")
    def test_basic(self, completion):
        assert completion

    @pytest.mark.complete("ssh-keyscan -", require_cmd=True)
    def test_options(self, completion):
        assert completion

    @pytest.mark.complete("ssh-keyscan -t rsa,", require_cmd=True)
    def test_type_delimited(self, completion):
        assert completion
        assert "rsa" not in completion