MCPcopy
hub / github.com/beetbox/beets / test_sorted_files

Method test_sorted_files

test/test_files.py:656–660  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

654 touch(os.path.join(self.base, b"d", b"z"))
655
656 def test_sorted_files(self):
657 res = list(util.sorted_walk(self.base))
658 assert len(res) == 2
659 assert res[0] == (self.base, [b"d"], [b"x", b"y"])
660 assert res[1] == (os.path.join(self.base, b"d"), [], [b"z"])
661
662 def test_ignore_file(self):
663 res = list(util.sorted_walk(self.base, (b"x",)))

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected