This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
pyoidc-ozwillo/tests/test_utils_for_tests.py

14 lines
580 B
Python

from utils_for_tests import URLObject
__author__ = "@maennelpaennel"
def test_utils_urlobject_init():
url_1 = URLObject(host='host', resource='resource', arguments=set(['arguments']))
url_2 = URLObject(host='host', resource='resource', arguments=set(['arguments']))
assert url_1 == url_2
def test_utils_urlobject_set_by_string():
url_1 = URLObject.create('this_is_a_host/this_is_a_resource?followed_by=args&and_more=args')
url_2 = URLObject(host='this_is_a_host', resource='this_is_a_resource', arguments=set(['followed_by=args', 'and_more=args']))
assert url_1 == url_2