diff --git a/test.py b/test.py index 3b12f0f..fa3dda5 100755 --- a/test.py +++ b/test.py @@ -33,7 +33,7 @@ def test_matrix_encode(self): def test_escape_chars(self): s = artifactory.escape_chars('a,b|c=d') - self.assertEqual(s, "a\,b\|c\=d") + self.assertEqual(s, r"a\,b\|c\=d") def test_properties_encode(self): params = {"foo": "bar,baz", "qux": "as=df"} @@ -43,7 +43,7 @@ def test_properties_encode(self): def test_properties_encode_multi(self): params = {'baz': ['ba\\r', 'qu|ux'], 'foo': 'a,s=df'} s = artifactory.encode_properties(params) - self.assertEqual(s, "baz=ba\\r,qu\|ux|foo=a\,s\=df") + self.assertEqual(s, "baz=ba\\r,qu\\|ux|foo=a\\,s\\=df") class ArtifactoryFlavorTest(unittest.TestCase):