summaryrefslogtreecommitdiffstats
path: root/tests/custodia.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-06-07 15:14:42 -0400
committerSimo Sorce <simo@redhat.com>2015-06-07 15:14:42 -0400
commit77d841778fa5ec2793b3879e475439c2365ec4f6 (patch)
tree7135e3c13c8f81fc8479abfb444d183e9507c92a /tests/custodia.py
parent43e1f39ebe1c58408b05329644007fb1799751fa (diff)
downloadcustodia-77d841778fa5ec2793b3879e475439c2365ec4f6.tar.gz
custodia-77d841778fa5ec2793b3879e475439c2365ec4f6.tar.xz
custodia-77d841778fa5ec2793b3879e475439c2365ec4f6.zip
Fix Python 3 portablility issues
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'tests/custodia.py')
-rw-r--r--tests/custodia.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/custodia.py b/tests/custodia.py
index c0c899d..9117d5e 100644
--- a/tests/custodia.py
+++ b/tests/custodia.py
@@ -48,7 +48,7 @@ class CustodiaTests(unittest.TestCase):
def test_simple_1_get_key(self):
r = self._make_request('GET', '/secrets/test/key', self.dfl_headers)
self.assertEqual(r.status, 200)
- body = r.read()
+ body = r.read().decode('utf-8')
data = {'type': 'simple', 'value': 'VmVycnlTZWNyZXQK'}
self.assertEqual(json.loads(body), data)