Skip to content

Commit 36e13ac

Browse files
committed
new: Test case to cover multiple values for a single parameter
1 parent 95528df commit 36e13ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_unit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def test__build_url(self):
9393
self.client._version = 3
9494
url = '{0}/v{1}{2}'.format(self.host,
9595
str(self.client._version),
96-
'/here/there/1?hello=0&world=1')
97-
query_params = {'hello': 0, 'world': 1}
96+
'/here/there/1?hello=0&world=1&ztest=0&ztest=1')
97+
query_params = {'hello': 0, 'world': 1, 'ztest': [0,1]}
9898
built_url = self.client._build_url(query_params)
9999
self.assertEqual(built_url, url)
100100

0 commit comments

Comments
 (0)