Esempio n. 1
0
 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")
Esempio n. 2
0
 def test_properties_encode(self):
     params = {"foo": "bar,baz", "qux": "as=df"}
     s = artifactory.encode_properties(params)
     self.assertEqual(s, "foo=bar\\,baz;qux=as\\=df")
Esempio n. 3
0
 def test_properties_encode(self):
     params = {"foo": "bar,baz", "qux": "as=df"}
     s = artifactory.encode_properties(params)
     self.assertEqual(s, "foo=bar\\,baz|qux=as\\=df")
Esempio n. 4
0
 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")
 def test_properties_encode_multi(self):
     params = {"baz": ["ba\\r", "qu|ux"], "foo": "a,s=df"}
     s = artifactory.encode_properties(params)
     self.assertEqual(s, r"baz=ba\r,qu\|ux;foo=a\,s\=df")