devtools/testlib.py
branchstable
changeset 6109 47d9c0e0f7b7
parent 5974 cac990ad6180
child 6140 65a619eb31c4
child 6165 7da7c270bbbd
equal deleted inserted replaced
6108:c459ffa5fa6f 6109:47d9c0e0f7b7
   619 
   619 
   620     def view(self, vid, rset=None, req=None, template='main-template',
   620     def view(self, vid, rset=None, req=None, template='main-template',
   621              **kwargs):
   621              **kwargs):
   622         """This method tests the view `vid` on `rset` using `template`
   622         """This method tests the view `vid` on `rset` using `template`
   623 
   623 
   624         If no error occured while rendering the view, the HTML is analyzed
   624         If no error occurred while rendering the view, the HTML is analyzed
   625         and parsed.
   625         and parsed.
   626 
   626 
   627         :returns: an instance of `cubicweb.devtools.htmlparser.PageInfo`
   627         :returns: an instance of `cubicweb.devtools.htmlparser.PageInfo`
   628                   encapsulation the generated HTML
   628                   encapsulation the generated HTML
   629         """
   629         """
   651 
   651 
   652 
   652 
   653     def _test_view(self, viewfunc, view, template='main-template', kwargs={}):
   653     def _test_view(self, viewfunc, view, template='main-template', kwargs={}):
   654         """this method does the actual call to the view
   654         """this method does the actual call to the view
   655 
   655 
   656         If no error occured while rendering the view, the HTML is analyzed
   656         If no error occurred while rendering the view, the HTML is analyzed
   657         and parsed.
   657         and parsed.
   658 
   658 
   659         :returns: an instance of `cubicweb.devtools.htmlparser.PageInfo`
   659         :returns: an instance of `cubicweb.devtools.htmlparser.PageInfo`
   660                   encapsulation the generated HTML
   660                   encapsulation the generated HTML
   661         """
   661         """