/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/pytests/unit/modules/test_win_ip.py
18 строк
428 B
Shane Lee
Use powershell for non-localized returns (#68826)
10 апр 2026, 01:52
Не верифицирован
10 апр 2026, 01:52
8830e20
Код
Авторство
О чём код?
""" :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> Test cases for salt.modules.win_ip """ import pytest import salt.modules.win_ip as win_ip from salt.exceptions import SaltInvocationError def test_get_subnet_length(): """ Test get subnet length is correct. """ assert win_ip.get_subnet_length("255.255.255.0") == 24 pytest.raises(SaltInvocationError, win_ip.get_subnet_length, "255.255.0")