def test_contains_path_with_basename(self):
-> assert 'samplefile' in self.root
assert 'not_existing' not in self.root
def __contains__(self, other):
if isinstance(other, str):
-> return self.join(other).check()
else:
if other.dirpath() != self:
return False
p = self.join(other.basename)
return p.check()