

def __match_string(self, subject):
    reasons = []
    index = 0
    for part in self._expected:
        if (part != subject[index:(index + len(part))]):
            return (False, ['item equal {0!r} not found at index {1}'.format(part, index)])
        else:
            reasons.append('item equal {0!r} found at index {1}'.format(part, index))
        index = len(part)
    if (len(subject) != len(''.join(index._expected))):
        return (False, ['have a different length'])
    return (True, reasons)

dataset/ETHPy150Open jaimegildesagredo/expects/expects/matchers/built_in/contain.py contain_exactly.__match_string/VarMisuse@108/157 `self`->`index`