source: uri/tests/test_api.py@ 234

Last change on this file since 234 was 230, checked in by wouter, 4 years ago

#91 clone https://pypi.org/project/rfc3986/

File size: 407 bytes
Line 
1# -*- coding: utf-8 -*-
2from rfc3986.api import (
3 uri_reference,
4 is_valid_uri,
5 normalize_uri,
6 URIReference,
7)
8
9
10def test_uri_reference():
11 assert isinstance(uri_reference("http://example.com"), URIReference)
12
13
14def test_is_valid_uri():
15 assert is_valid_uri("http://example.com") is True
16
17
18def test_normalize_uri():
19 assert normalize_uri("HTTP://EXAMPLE.COM") == "http://example.com"
Note: See TracBrowser for help on using the repository browser.