(self)
| 678 | |
| 679 | class UniquePathTest(BeetsTestCase): |
| 680 | def setUp(self): |
| 681 | super().setUp() |
| 682 | |
| 683 | self.base = os.path.join(self.temp_dir, b"testdir") |
| 684 | os.mkdir(syspath(self.base)) |
| 685 | touch(os.path.join(self.base, b"x.mp3")) |
| 686 | touch(os.path.join(self.base, b"x.1.mp3")) |
| 687 | touch(os.path.join(self.base, b"x.2.mp3")) |
| 688 | touch(os.path.join(self.base, b"y.mp3")) |
| 689 | |
| 690 | def test_new_file_unchanged(self): |
| 691 | path = util.unique_path(os.path.join(self.base, b"z.mp3")) |