Skip to content

Commit

Permalink
Decode the HTTP response into a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurin committed Jul 30, 2013
1 parent dd70f30 commit a0749c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_connection.py
Expand Up @@ -28,7 +28,7 @@
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):
Expand Down Expand Up @@ -154,7 +154,7 @@ def test_query_connection_noproxy(self):
"/",
"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):
Expand All @@ -176,7 +176,7 @@ def test_query_connection_noproxy_nosecure(self):
"/",
"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):
Expand Down

0 comments on commit a0749c4

Please sign in to comment.