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

Part of lp.testing.matchers View In Hierarchy

Adapt a Binary Matcher to a query count.

May match against a StormStatementRecorder or a RequestTimelineCollector.

If there is a mismatch, the queries from the collector are provided as a test attachment.

Method __init__ Create a HasQueryCount that will match using count_matcher.
Class Method byEquality Undocumented
Method __str__ Undocumented
Method match Undocumented
def __init__(self, count_matcher, other_query_collector=None):
Create a HasQueryCount that will match using count_matcher.
@classmethod
def byEquality(cls, other_query_collector):
Undocumented
def __str__(self):
Undocumented
def match(self, something):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-06-19 00:00:15.