equal
deleted
inserted
replaced
3 :organization: Logilab |
3 :organization: Logilab |
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
7 """ |
7 """ |
8 from cubicweb.devtools.testlib import WebTest |
8 from cubicweb.devtools.testlib import CubicWebTC |
9 from cubicweb.devtools.htmlparser import DTDValidator |
9 from cubicweb.devtools.htmlparser import DTDValidator |
10 |
10 |
11 |
11 |
12 class LogFormTemplateTC(WebTest): |
12 class LogFormTemplateTC(CubicWebTC): |
13 |
13 |
14 def _login_labels(self): |
14 def _login_labels(self): |
15 valid = self.content_type_validators.get('text/html', DTDValidator)() |
15 valid = self.content_type_validators.get('text/html', DTDValidator)() |
16 page = valid.parse_string(self.vreg['views'].main_template(self.request(), 'login')) |
16 page = valid.parse_string(self.vreg['views'].main_template(self.request(), 'login')) |
17 return page.find_tag('label') |
17 return page.find_tag('label') |