コード例 #1
0
    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")
コード例 #2
0
    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")
コード例 #3
0
ファイル: test.py プロジェクト: VeritasOS/artifactory
    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")