def test_dirpath(self):
newpath = self.root.join('sampledir')
-> assert newpath.dirpath() == self.root