def __match_string(self, subject):
        reasons = []
        for item in self._expected:
            if not item in subject:
                return False, ['item {0!r} not found'.format(item)]
            else:
                reasons.append('item {0!r} found'.format(item))

        if len(subject) != len(''.join(self._expected)):
            return False, ['have a different length']
        return True, reasons
dataset/ETHPy150Open jaimegildesagredo/expects/expects/matchers/built_in/contain.py/contain_only.__match_string/original