Searched refs:matchAgainst (Results 1 – 1 of 1) sorted by relevance
931 for attr, matchAgainst in self.attrs.items():940 if not self._matches(attrValue, matchAgainst):977 def _matches(self, markup, matchAgainst): argument980 if matchAgainst is True:982 elif callable(matchAgainst):983 result = matchAgainst(markup)992 if hasattr(matchAgainst, 'match'):994 result = markup and matchAgainst.search(markup)995 elif hasattr(matchAgainst, '__iter__'): # list-like996 result = markup in matchAgainst[all …]