# HG changeset patch # User Sylvain Thénault # Date 1396547719 -7200 # Node ID 3ff4c6f80c37381b4b4a52d8ae1ae198e0cec5e1 # Parent 19c423d9d2157dc0cdaef398c308202fee1759e5 [test] update unittest_utils to 3.19 api diff -r 19c423d9d215 -r 3ff4c6f80c37 test/unittest_utils.py --- a/test/unittest_utils.py Thu Apr 03 19:55:11 2014 +0200 +++ b/test/unittest_utils.py Thu Apr 03 19:55:19 2014 +0200 @@ -229,11 +229,11 @@ class HTMLHeadTC(CubicWebTC): def htmlhead(self, datadir_url): - req = self.request() - base_url = u'http://test.fr/data/' - req.datadir_url = base_url - head = HTMLHead(req) - return head + with self.admin_access.web_request() as req: + base_url = u'http://test.fr/data/' + req.datadir_url = base_url + head = HTMLHead(req) + return head def test_concat_urls(self): base_url = u'http://test.fr/data/'