diff options
Diffstat (limited to 'testenv')
-rw-r--r-- | testenv/tests/validators/test_net.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testenv/tests/validators/test_net.py b/testenv/tests/validators/test_net.py index 269db9e1..486154fc 100644 --- a/testenv/tests/validators/test_net.py +++ b/testenv/tests/validators/test_net.py @@ -30,6 +30,7 @@ from kvmd.validators.net import valid_ip from kvmd.validators.net import valid_rfc_host from kvmd.validators.net import valid_port from kvmd.validators.net import valid_mac +from kvmd.validators.net import valid_ssl_ciphers # ===== @@ -142,3 +143,15 @@ def test_ok__valid_mac(arg: Any) -> None: def test_fail__valid_mac(arg: Any) -> None: with pytest.raises(ValidatorError): print(valid_mac(arg)) + + +# ===== [email protected]("arg", ["ALL", " ALL:@SECLEVEL=0 "]) +def test_ok__valid_ssl_ciphers(arg: Any) -> None: + assert valid_ssl_ciphers(arg) == str(arg).strip() + + [email protected]("arg", ["test", "all", "", None]) +def test_fail__valid_ssl_ciphers(arg: Any) -> None: + with pytest.raises(ValidatorError): + print(valid_ssl_ciphers(arg)) |