diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-07-14 05:49:38 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-07-14 05:49:38 +0300 |
commit | 9459fa3cede5b1a1a061cc5a15a25b2715d0d47d (patch) | |
tree | ad6ec8bc18dbf4a75c58ee0492b81e4077e38213 /mediagoblin/tests/test_pluginapi.py | |
parent | 19baab1b034b31a53a0dbddd17d3f31594ce5afc (diff) | |
download | mediagoblin-9459fa3cede5b1a1a061cc5a15a25b2715d0d47d.tar.lz mediagoblin-9459fa3cede5b1a1a061cc5a15a25b2715d0d47d.tar.xz mediagoblin-9459fa3cede5b1a1a061cc5a15a25b2715d0d47d.zip |
Fix tests on Python 3.
Diffstat (limited to 'mediagoblin/tests/test_pluginapi.py')
-rw-r--r-- | mediagoblin/tests/test_pluginapi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/tests/test_pluginapi.py b/mediagoblin/tests/test_pluginapi.py index 5a3d41e6..b3f37e2a 100644 --- a/mediagoblin/tests/test_pluginapi.py +++ b/mediagoblin/tests/test_pluginapi.py @@ -224,7 +224,7 @@ def test_hook_handle(): assert pluginapi.hook_handle( "nothing_handling", call_log, unhandled_okay=True) is None assert call_log == [] - + # Multiple provided, go with the first! call_log = [] assert pluginapi.hook_handle( @@ -348,7 +348,7 @@ def test_modify_context(context_modified_app): """ # Specific thing passed into a page result = context_modified_app.get("/modify_context/specific/") - assert result.body.strip() == """Specific page! + assert result.body.strip() == b"""Specific page! specific thing: in yer specificpage global thing: globally appended! @@ -357,7 +357,7 @@ doubleme: happyhappy""" # General test, should have global context variable only result = context_modified_app.get("/modify_context/") - assert result.body.strip() == """General page! + assert result.body.strip() == b"""General page! global thing: globally appended! lol: cats |