From e4b7ade6dd5b844f0d53a4bcaecfbe4bd0d45c3c Mon Sep 17 00:00:00 2001 From: PacoVu Date: Thu, 6 Jun 2019 20:16:49 -0700 Subject: [PATCH 1/4] Update client_test.py --- ringcentral/http/client_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ringcentral/http/client_test.py b/ringcentral/http/client_test.py index 5e7993f..c62b00e 100644 --- a/ringcentral/http/client_test.py +++ b/ringcentral/http/client_test.py @@ -11,8 +11,8 @@ class TestClient(TestCase): def test_create_request_with_query_string(self): - req = Client().create_request(url='http://whatever', query_params={'foo': 'bar', 'baz': 'qux'}) - self.assertEqual('http://whatever?foo=bar&baz=qux', req.url) + req = Client().create_request(url='http://whatever', query_params={'foo': 'bar', 'baz': 'qux', 'a2z':['abc','xyz']}) + self.assertEqual('http://whatever?foo=bar&baz=qux&a2z=abc&a2z=xyz', req.url) def test_create_request_encode_body_url(self): r = Client().create_request(body=body, headers={'Content-Type': 'application/x-www-form-urlencoded'}) From 2622200286183b3a7a859ac902c4263bcadebddb Mon Sep 17 00:00:00 2001 From: PacoVu Date: Thu, 6 Jun 2019 20:20:20 -0700 Subject: [PATCH 2/4] Update client_test.py --- ringcentral/http/client_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ringcentral/http/client_test.py b/ringcentral/http/client_test.py index c62b00e..e60f343 100644 --- a/ringcentral/http/client_test.py +++ b/ringcentral/http/client_test.py @@ -12,7 +12,7 @@ class TestClient(TestCase): def test_create_request_with_query_string(self): req = Client().create_request(url='http://whatever', query_params={'foo': 'bar', 'baz': 'qux', 'a2z':['abc','xyz']}) - self.assertEqual('http://whatever?foo=bar&baz=qux&a2z=abc&a2z=xyz', req.url) + self.assertEqual('http://whatever?a2z=abc&a2z=xyz&foo=bar&baz=qux', req.url) def test_create_request_encode_body_url(self): r = Client().create_request(body=body, headers={'Content-Type': 'application/x-www-form-urlencoded'}) From be6da1e38e1d848dcfff2621bf746fa32b827051 Mon Sep 17 00:00:00 2001 From: PacoVu Date: Thu, 6 Jun 2019 20:25:24 -0700 Subject: [PATCH 3/4] Update client_test.py --- ringcentral/http/client_test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ringcentral/http/client_test.py b/ringcentral/http/client_test.py index e60f343..a4e9c28 100644 --- a/ringcentral/http/client_test.py +++ b/ringcentral/http/client_test.py @@ -11,8 +11,11 @@ class TestClient(TestCase): def test_create_request_with_query_string(self): - req = Client().create_request(url='http://whatever', query_params={'foo': 'bar', 'baz': 'qux', 'a2z':['abc','xyz']}) - self.assertEqual('http://whatever?a2z=abc&a2z=xyz&foo=bar&baz=qux', req.url) + req = Client().create_request(url='http://whatever', query_params={'foo': 'bar', 'baz': 'qux'}) + self.assertEqual('http://whatever?foo=bar&baz=qux', req.url) + + req = Client().create_request(url='http://whatever', query_params={'a2z':['abc','xyz']}) + self.assertEqual('http://whatever?foo=a2z=abc&a2z=xyz', req.url) def test_create_request_encode_body_url(self): r = Client().create_request(body=body, headers={'Content-Type': 'application/x-www-form-urlencoded'}) From 3a1370f5d91c890cd6ab2f2e5b9c0d3cbe624a87 Mon Sep 17 00:00:00 2001 From: PacoVu Date: Thu, 6 Jun 2019 20:29:18 -0700 Subject: [PATCH 4/4] Update client_test.py --- ringcentral/http/client_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ringcentral/http/client_test.py b/ringcentral/http/client_test.py index a4e9c28..72b89f1 100644 --- a/ringcentral/http/client_test.py +++ b/ringcentral/http/client_test.py @@ -15,7 +15,7 @@ def test_create_request_with_query_string(self): self.assertEqual('http://whatever?foo=bar&baz=qux', req.url) req = Client().create_request(url='http://whatever', query_params={'a2z':['abc','xyz']}) - self.assertEqual('http://whatever?foo=a2z=abc&a2z=xyz', req.url) + self.assertEqual('http://whatever?a2z=abc&a2z=xyz', req.url) def test_create_request_encode_body_url(self): r = Client().create_request(body=body, headers={'Content-Type': 'application/x-www-form-urlencoded'})