equal
deleted
inserted
replaced
1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 |
18 |
19 from cubicweb.devtools.testlib import CubicWebTC |
19 from cubicweb.devtools.testlib import CubicWebTC |
20 from cubicweb.devtools.htmlparser import XMLValidator |
20 from cubicweb.devtools.htmlparser import XMLValidator |
21 from cubicweb.dbapi import DBAPISession |
|
22 |
21 |
23 |
22 |
24 class LogFormTemplateTC(CubicWebTC): |
23 class LogFormTemplateTC(CubicWebTC): |
25 |
24 |
26 def _login_labels(self): |
25 def _login_labels(self): |
37 |
36 |
38 |
37 |
39 class MainNoTopTemplateTC(CubicWebTC): |
38 class MainNoTopTemplateTC(CubicWebTC): |
40 |
39 |
41 def test_valid_xhtml(self): |
40 def test_valid_xhtml(self): |
42 self.view('index', template='main-no-top') |
41 with self.admin_access.web_request() as req: |
|
42 self.view('index', template='main-no-top', req=req) |
43 |
43 |
44 |
44 |
45 if __name__ == '__main__': |
45 if __name__ == '__main__': |
46 from logilab.common.testlib import unittest_main |
46 from logilab.common.testlib import unittest_main |
47 unittest_main() |
47 unittest_main() |