X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=mod%2Fdistributorapi%2Ftests%2Ftest_utils.py;fp=mod%2Fdistributorapi%2Ftests%2Ftest_utils.py;h=f6530a32d608bed7dbee4111d21ad3016132e514;hb=56591bbb09719e040b15cc8842e4bf6b18e28962;hp=481e325fecbc0d1428c0ff4f855ecd03065e32dc;hpb=743c1d1034101fa676e98b6ffbf39592e2ca8b20;p=dcaegen2%2Fplatform.git diff --git a/mod/distributorapi/tests/test_utils.py b/mod/distributorapi/tests/test_utils.py index 481e325..f6530a3 100644 --- a/mod/distributorapi/tests/test_utils.py +++ b/mod/distributorapi/tests/test_utils.py @@ -1,5 +1,5 @@ # ============LICENSE_START======================================================= -# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2019-2022 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,9 +16,12 @@ from distributor import utils +# more tests are in test_api.py + + def test_urljoin(): assert "http://foo/bar/baz" == utils.urljoin("http://foo", "bar", "baz") assert "http://foo/bar/baz" == utils.urljoin("http://foo/", "bar", "baz") - assert "http://foo/bar/baz?name=some-name&version=1.5.0" \ - == utils.urljoin("http://foo", "bar", "baz", **{"name": "some-name", - "version": "1.5.0"}) + assert "http://foo/bar/baz?name=some-name&version=1.5.0" == utils.urljoin( + "http://foo", "bar", "baz", **{"name": "some-name", "version": "1.5.0"} + )