l.t.m.BrowsesWithQueryLimit(Matcher) : class documentation

Part of lp.testing.matchers View In Hierarchy

Matches the rendering of an objects default view with a query limit.

This is a wrapper for HasQueryCount which does the heavy lifting on the query comparison - BrowsesWithQueryLimit simply provides convenient glue to use a userbrowser and view an object.

Method __init__ Create a BrowsesWithQueryLimit checking for limit query_limit.
Method match Undocumented
Method __str__ Undocumented
def __init__(self, query_limit, user, view_name='+index', **options):
Create a BrowsesWithQueryLimit checking for limit query_limit.
Parametersquery_limitThe number of queries permited for the page.
userThe user to use to render the page.
view_nameThe name of the view to use to render tha page.
optionsAdditional options for view generation eg rootsite.
def match(self, context):
Undocumented
def __str__(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.