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


class TestUseradd:
    @pytest.mark.complete("useradd ")
    def test_1(self, completion):
        assert not completion

    @pytest.mark.complete("useradd -", require_cmd=True)
    def test_2(self, completion):
        assert completion

    @pytest.mark.complete("useradd -R shells --shell=")
    def test_chroot_shells(self, completion):
        assert completion == "/bash/completion/canary"