summaryrefslogtreecommitdiffstats
path: root/test/t/test_su.py
blob: d71d6e1038074eeaae512d6f5d668783a9f459a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest


class TestSu:
    @pytest.mark.complete("su ")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete(
        "su -", require_cmd=True, skipif="[[ $OSTYPE != *linux* ]]"
    )
    def test_2(self, completion):
        assert completion