From 9817ec3e47bca8fba9a7cac56d785e9d644f7473 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Mon, 30 Jun 2014 23:17:28 +0000 Subject: Imported from /home/lorry/working-area/delta_python-packages_python-rfc3986/rfc3986-0.2.0.tar.gz. --- tests/test_api.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_api.py (limited to 'tests/test_api.py') 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' -- cgit v1.2.1