mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
15 lines
306 B
Python
15 lines
306 B
Python
"""test validation of urls"""
|
|
|
|
import pytest
|
|
|
|
from kanidm import KanidmClient
|
|
|
|
|
|
def test_bad_origin() -> None:
|
|
"""testing with a bad origin"""
|
|
|
|
client = KanidmClient(uri="http://localhost:8000")
|
|
|
|
with pytest.raises(ValueError):
|
|
client._validate_is_valid_origin_url("ftp://example.com")
|