From: Christopher Allan Webber Date: Tue, 16 Sep 2014 20:15:13 +0000 (-0500) Subject: Fix error check in test_edit.py for python 3 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=16450dada24dec2819c6067768af54b0d9b91402;p=mediagoblin.git Fix error check in test_edit.py for python 3 This isn't the nicest of checks... we should probably be checking the actual form passed into the context. But for now, it's a fix. --- diff --git a/mediagoblin/tests/test_edit.py b/mediagoblin/tests/test_edit.py index 54f43d68..e34ca27a 100644 --- a/mediagoblin/tests/test_edit.py +++ b/mediagoblin/tests/test_edit.py @@ -250,5 +250,5 @@ class TestMetaDataEdit: old_metadata = new_metadata new_metadata = media_entry.media_metadata assert new_metadata == old_metadata - assert ("u'On the worst day' is not a 'date-time'" in + assert (b"'On the worst day' is not a 'date-time'" in response.body)