source:
uri/tests/test_api.py@
1351
Last change on this file since 1351 was 230, checked in by , 3 years ago | |
---|---|
File size: 407 bytes |
Line | |
---|---|
1 | # -*- coding: utf-8 -*- |
2 | from rfc3986.api import ( |
3 | uri_reference, |
4 | is_valid_uri, |
5 | normalize_uri, |
6 | URIReference, |
7 | ) |
8 | |
9 | |
10 | def test_uri_reference(): |
11 | assert isinstance(uri_reference("http://example.com"), URIReference) |
12 | |
13 | |
14 | def test_is_valid_uri(): |
15 | assert is_valid_uri("http://example.com") is True |
16 | |
17 | |
18 | def test_normalize_uri(): |
19 | assert normalize_uri("HTTP://EXAMPLE.COM") == "http://example.com" |
Note:
See TracBrowser
for help on using the repository browser.