Merge "codecoverage improvement"
[dcaegen2/platform.git] / mod / distributorapi / tests / test_utils.py
index 481e325..f6530a3 100644 (file)
@@ -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.
 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"}
+    )