diff options
author | Simo Sorce <simo@redhat.com> | 2015-06-07 15:14:42 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-06-07 15:14:42 -0400 |
commit | 77d841778fa5ec2793b3879e475439c2365ec4f6 (patch) | |
tree | 7135e3c13c8f81fc8479abfb444d183e9507c92a /tests/custodia.py | |
parent | 43e1f39ebe1c58408b05329644007fb1799751fa (diff) | |
download | custodia-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.py | 2 |
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) |