def test_contains_path(self):
path1 = self.root.join('samplefile')
-> assert path1 in self.root
assert not self.root.join('not existing') 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()
def __ne__(self, other):
-> return not self == other