Skip to content

Commit

Permalink
Merge 3a1370f into 10a81b8
Browse files Browse the repository at this point in the history
  • Loading branch information
PacoVu committed Jun 7, 2019
2 parents 10a81b8 + 3a1370f commit 16df602
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ringcentral/http/client_test.py
Expand Up @@ -14,6 +14,9 @@ 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)

req = Client().create_request(url='http://whatever', query_params={'a2z':['abc','xyz']})
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'})
self.assertEqual('foo=bar&baz=qux', r.data)
Expand Down

0 comments on commit 16df602

Please sign in to comment.