diff options
author | Toby Burress <kurin@delete.org> | 2013-07-29 21:58:22 -0400 |
---|---|---|
committer | Toby Burress <kurin@delete.org> | 2013-07-29 21:58:22 -0400 |
commit | a0749c43cd039af5733212e1f164c5d82eddf46c (patch) | |
tree | 5d2310148d1f6c88f347efb2b6905d2dc5e7a0eb | |
parent | dd70f30597eaf970b246672cc6de24dee2053652 (diff) | |
download | boto-a0749c43cd039af5733212e1f164c5d82eddf46c.tar.gz |
Decode the HTTP response into a string.
-rw-r--r-- | tests/unit/test_connection.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_connection.py b/tests/unit/test_connection.py index 4c7c909d..65132b1a 100644 --- a/tests/unit/test_connection.py +++ b/tests/unit/test_connection.py @@ -28,7 +28,7 @@ from boto.connection import AWSQueryConnection, AWSAuthConnection from boto.exception import BotoServerError from boto.regioninfo import RegionInfo from boto.compat import json -from boto.utils import ensure_bytes +from boto.utils import ensure_bytes, ensure_string class TestListParamsSerialization(unittest.TestCase): @@ -154,7 +154,7 @@ class TestAWSQueryConnectionSimple(TestAWSQueryConnection): "/", "POST") del os.environ['no_proxy'] - args = urlparse.parse_qs(HTTPretty.last_request.body) + args = urllib.parse.parse_qs(ensure_string(HTTPretty.last_request.body)) self.assertEqual(args['AWSAccessKeyId'], ['access_key']) def test_query_connection_noproxy_nosecure(self): @@ -176,7 +176,7 @@ class TestAWSQueryConnectionSimple(TestAWSQueryConnection): "/", "POST") del os.environ['no_proxy'] - args = urlparse.parse_qs(HTTPretty.last_request.body) + args = urllib.parse.parse_qs(ensure_string(HTTPretty.last_request.body)) self.assertEqual(args['AWSAccessKeyId'], ['access_key']) def test_single_command(self): |