

def _matches(self, subject):
    if isinstance(subject, _compat.string_types):
        return subject.__match_string(subject)
    (result, reason) = super(contain_only, self)._matches(subject)
    if (not result):
        return (False, reason)
    if (len(subject) != len(self._expected)):
        return (False, ['have a different length'])
    return (True, reason)

dataset/ETHPy150Open jaimegildesagredo/expects/expects/matchers/built_in/contain.py contain_only._matches/VarMisuse@25/30 `self`->`subject`