summaryrefslogtreecommitdiff
path: root/pecan/tests/test_generic.py
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2013-04-30 15:06:20 -0400
committerRyan Petrello <lists@ryanpetrello.com>2013-04-30 16:51:57 -0400
commitb6b2dce997c12211f00ff622d14c994f86106ad3 (patch)
tree49e747cf5bd8db965908344d56a1d5d31c95002d /pecan/tests/test_generic.py
parente5f7e9dd8034d00dae57718c47b1b5894b887719 (diff)
downloadpecan-b6b2dce997c12211f00ff622d14c994f86106ad3.tar.gz
Cleanup and add a ton of bytes() compatability for tests.
Diffstat (limited to 'pecan/tests/test_generic.py')
-rw-r--r--pecan/tests/test_generic.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pecan/tests/test_generic.py b/pecan/tests/test_generic.py
index 82a6ca4..879ad26 100644
--- a/pecan/tests/test_generic.py
+++ b/pecan/tests/test_generic.py
@@ -4,6 +4,8 @@ try:
except:
from json import dumps # noqa
+from six import b as b_
+
from pecan import Pecan, expose
from pecan.tests import PecanTestCase
@@ -27,11 +29,11 @@ class TestGeneric(PecanTestCase):
app = TestApp(Pecan(RootController()))
r = app.get('/')
assert r.status_int == 200
- assert r.body == 'GET'
+ assert r.body == b_('GET')
r = app.post('/')
assert r.status_int == 200
- assert r.body == dumps(dict(result='POST'))
+ assert r.body == b_(dumps(dict(result='POST')))
r = app.get('/do_get', status=404)
assert r.status_int == 404