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


class TestArpspoof:
    @pytest.mark.complete(
        "arpspoof -",
        require_cmd=True,
        # May require privileges or network interfaces available even for
        # outputting the usage message. Unfortunately --help provokes a
        # non-zero exit status so we cannot test for that.
        skipif=(
            "arpspoof 2>&1 | "
            "command grep -qE 'libnet_(open_link|select_device)'"
        ),
    )
    def test_1(self, completion):
        assert completion