[web/test] CubicWebTC.view returns bytes
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 12 Oct 2015 20:43:50 +0200
changeset 10785 e63fb79b32e0
parent 10784 21bb9a00adeb
child 10786 2ef74a6e6785
[web/test] CubicWebTC.view returns bytes
web/test/unittest_views_errorform.py
--- a/web/test/unittest_views_errorform.py	Mon Oct 12 18:43:41 2015 +0200
+++ b/web/test/unittest_views_errorform.py	Mon Oct 12 20:43:50 2015 +0200
@@ -50,8 +50,8 @@
                     req.data['excinfo'] = sys.exc_info()
                     req.data['ex'] = e
                     html = self.view('error', req=req)
-                    self.failUnless(re.search(r'^<input name="__signature" type="hidden" '
-                                              'value="[0-9a-f]{32}" />$',
+                    self.assertTrue(re.search(b'^<input name="__signature" type="hidden" '
+                                              b'value="[0-9a-f]{32}" />$',
                                               html.source, re.M))