forked from Github-Mirrors/canaille
10 lines
324 B
Python
10 lines
324 B
Python
![]() |
from canaille.apputils import validate_uri
|
||
|
|
||
|
|
||
|
def test_validate_uri():
|
||
|
assert validate_uri("https://canaille.tld")
|
||
|
assert validate_uri("scheme.with.dots://canaille.tld")
|
||
|
assert validate_uri("scheme.with.dots://localhost")
|
||
|
assert validate_uri("scheme.with.dots://oauth")
|
||
|
assert not validate_uri("invalid")
|