def test_relto(self):
l=self.root.join("sampledir", "otherfile")
assert l.relto(self.root) == l.sep.join(["sampledir", "otherfile"])
-> assert l.check(relto=self.root)
assert self.root.check(notrelto=l)
assert not self.root.check(relto=l)