/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_useradd.py
15 строк
413 B
Ville Skyttä
chsh, useradd, usermod: complete shells in chroot given by -R/--root
05 янв 2021, 10:02
05 янв 2021, 10:02
e05885e
Код
Авторство
О чём код?
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"