def test_url_prefix(): r = CnrClient(endpoint="http://test.com/test") assert r._url("/2") == "http://test.com/test/cnr/2"
def test_url(): r = CnrClient(endpoint="http://test.com") assert r._url("/test") == "http://test.com/cnr/test"