Searched refs:matchAgainst (Results 1 – 1 of 1) sorted by relevance
928 for attr, matchAgainst in self.attrs.items():937 if not self._matches(attrValue, matchAgainst):974 def _matches(self, markup, matchAgainst): argument977 if matchAgainst is True:979 elif callable(matchAgainst):980 result = matchAgainst(markup)989 if hasattr(matchAgainst, 'match'):991 result = markup and matchAgainst.search(markup)992 elif hasattr(matchAgainst, '__iter__'): # list-like993 result = markup in matchAgainst[all …]