/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_wol.py
20 строк
594 B
Ville Skyttä
test/wol: don't fail MAC test if test system has /etc/ethers entries
08 дек 2019, 11:38
08 дек 2019, 11:38
8130f87
Код
Авторство
О чём код?
import pytest @pytest.mark.bashcomp(pre_cmds=("PATH=$PWD/shared/bin:$PATH",)) class TestWol: @pytest.mark.complete("wol ") def test_1(self, completion): assert all( x in completion for x in "00:00:00:00:00:00 11:11:11:11:11:11 " "22:22:22:22:22:22 33:33:33:33:33:33".split() ) @pytest.mark.complete("wol 00:") def test_2(self, completion): assert any(x.endswith("00:00:00:00:00") for x in completion) @pytest.mark.complete("wol -", require_cmd=True) def test_3(self, completion): assert completion