[devtools/test] fix bytes vs text in test_base_url
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 08 Feb 2016 16:32:07 +0100
changeset 11161 dd1933f56f4e
parent 11160 ed048bfd1b88
child 11162 d60d181b2b17
[devtools/test] fix bytes vs text in test_base_url Needed for python3 with the next changeset
cubicweb/devtools/test/unittest_httptest.py
--- a/cubicweb/devtools/test/unittest_httptest.py	Wed Feb 24 17:34:56 2016 +0100
+++ b/cubicweb/devtools/test/unittest_httptest.py	Mon Feb 08 16:32:07 2016 +0100
@@ -36,7 +36,7 @@
         self.assertEqual(response.status, http_client.OK)
 
     def test_base_url(self):
-        if self.config['base-url'] not in self.web_get().read():
+        if self.config['base-url'] not in self.web_get().read().decode('ascii'):
             self.fail('no mention of base url in retrieved page')