diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-06-30 23:17:28 +0000 |
---|---|---|
committer | <> | 2014-10-24 11:03:41 +0000 |
commit | 9817ec3e47bca8fba9a7cac56d785e9d644f7473 (patch) | |
tree | 2eddc46197f66e1629dcdf01bf0cb543c729920c /tests/test_api.py | |
download | python-rfc3986-master.tar.gz |
Imported from /home/lorry/working-area/delta_python-packages_python-rfc3986/rfc3986-0.2.0.tar.gz.HEADrfc3986-0.2.0master
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py new file mode 100644 index 0000000..9e9189a --- /dev/null +++ b/tests/test_api.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +from rfc3986.api import ( + uri_reference, is_valid_uri, normalize_uri, URIReference + ) + + +def test_uri_reference(): + assert isinstance(uri_reference('http://example.com'), URIReference) + + +def test_is_valid_uri(): + assert is_valid_uri('http://example.com') is True + + +def test_normalize_uri(): + assert normalize_uri('HTTP://EXAMPLE.COM') == 'http://example.com' |