def test_matrix_encode(self): params = {"foo": "bar", "qux": "asdf"} s = artifactory.encode_matrix_parameters(params) self.assertEqual(s, "foo=bar;qux=asdf") params = {'baz': ['bar', 'quux'], 'foo': 'asdf'} s = artifactory.encode_matrix_parameters(params) self.assertEqual(s, "baz=bar;baz=quux;foo=asdf")
def test_matrix_encode(self): params = {"foo": "bar", "qux": "asdf"} s = artifactory.encode_matrix_parameters(params) self.assertEqual(s, "foo=bar;qux=asdf") params = {"baz": ["bar", "quux"], "foo": "asdf"} s = artifactory.encode_matrix_parameters(params) self.assertEqual(s, "baz=bar;baz=quux;foo=asdf")