def test_dir(self):
#print repr(self.root.join("sampledir"))
-> assert self.root.join("sampledir").check(dir=1)
assert self.root.join('samplefile').check(notdir=1)
assert not self.root.join("samplefile").check(dir=1)