def test_add_something(self):
p = self.root.join('sample')
-> p = p + 'dir'
assert p.check()
def __add__(self, other):
""" return new path object with 'other' added to the basename"""
-> return self.new(basename=self.basename+str(other))