def test_visit_endswith(self):
l = []
for i in self.root.visit(checker(endswith="file")):
-> l.append(i.relto(self.root))
assert self.root.sep.join(["sampledir", "otherfile"]) in l
assert "samplefile" in l