summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_utils.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-04-09 00:13:36 +0200
committerNejc Habjan <nejc.habjan@siemens.com>2020-08-22 19:30:21 +0200
commit11383e70f74c70e6fe8a56f18b5b170db982f402 (patch)
tree00b3524f6b64c612e26d48d7ad91b96a55923077 /gitlab/tests/test_utils.py
parent402566a665dfdf0862f15a7e59e4d804d1301c77 (diff)
downloadgitlab-11383e70f74c70e6fe8a56f18b5b170db982f402.tar.gz
chore: run unittest2pytest on all unit tests
Diffstat (limited to 'gitlab/tests/test_utils.py')
-rw-r--r--gitlab/tests/test_utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitlab/tests/test_utils.py b/gitlab/tests/test_utils.py
index b57deda..7ebd006 100644
--- a/gitlab/tests/test_utils.py
+++ b/gitlab/tests/test_utils.py
@@ -24,17 +24,17 @@ class TestUtils(unittest.TestCase):
def test_clean_str_id(self):
src = "nothing_special"
dest = "nothing_special"
- self.assertEqual(dest, utils.clean_str_id(src))
+ assert dest == utils.clean_str_id(src)
src = "foo#bar/baz/"
dest = "foo%23bar%2Fbaz%2F"
- self.assertEqual(dest, utils.clean_str_id(src))
+ assert dest == utils.clean_str_id(src)
def test_sanitized_url(self):
src = "http://localhost/foo/bar"
dest = "http://localhost/foo/bar"
- self.assertEqual(dest, utils.sanitized_url(src))
+ assert dest == utils.sanitized_url(src)
src = "http://localhost/foo.bar.baz"
dest = "http://localhost/foo%2Ebar%2Ebaz"
- self.assertEqual(dest, utils.sanitized_url(src))
+ assert dest == utils.sanitized_url(src)