[web/test] CubicWebPublisher.handle_request returns bytes
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 06 Oct 2015 11:16:27 +0200
changeset 10780 a96ed0acc556
parent 10779 6cef304aca4c
child 10781 e2ab20561932
[web/test] CubicWebPublisher.handle_request returns bytes
web/test/unittest_application.py
--- a/web/test/unittest_application.py	Tue Oct 06 11:15:56 2015 +0200
+++ b/web/test/unittest_application.py	Tue Oct 06 11:16:27 2015 +0200
@@ -331,8 +331,8 @@
         except Redirect as redir:
             self.fail('anonymous user should get login form')
         clear_cache(req, 'get_authorization')
-        self.assertIn('__login', form)
-        self.assertIn('__password', form)
+        self.assertIn(b'__login', form)
+        self.assertIn(b'__password', form)
         self.assertFalse(req.cnx) # Mock cnx are False
         req.form['__login'] = self.admlogin
         req.form['__password'] = self.admpassword