

def _matches(self, subject):
    reasons = []
    for expected_item in self._expected:
        (matches_any, reason) = self._matches_any(expected_item, subject)
        if (not matches_any):
            return (False, [reason])
        else:
            reasons.append(reason)
    return (True, reasons)

dataset/ETHPy150Open jaimegildesagredo/expects/expects/matchers/built_in/contain.py contain._matches/original