summaryrefslogtreecommitdiff
path: root/test/t/test_sysctl.py
blob: 773b59107f25aa627234cffc14b06cdf1b6ff5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest


class TestSysctl:
    @pytest.mark.complete("sysctl -")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete(
        "sysctl kern",
        skipif="! sysctl -N -a 2>/dev/null | " "command grep -q ^kern",
    )
    def test_2(self, completion):
        assert completion