/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_arpspoof.py
17 строк
507 B
Ville Skyttä
test/arpspoof: skip gracefully on libnet_select_device errors
23 дек 2020, 23:55
23 дек 2020, 23:55
b767c4b
Код
Авторство
О чём код?
import pytest class TestArpspoof: @pytest.mark.complete( "arpspoof -", require_cmd=True, # May require privileges or network interfaces available even for # outputting the usage message. Unfortunately --help provokes a # non-zero exit status so we cannot test for that. skipif=( "arpspoof 2>&1 | " "command grep -qE 'libnet_(open_link|select_device)'" ), ) def test_1(self, completion): assert completion