def test_rename_files(self): with create_files(['junk<y>', 'notjunky']) as tests: try: renamed = files._rename_files(tests) self.assertTrue(renamed[0].endswith("junk_y_")) except WindowsError: pass
def test_rename_and_prepare(self): with create_files(['109029_23.tiff', 'notjunk<y>']) as tests: tests = _rename_files(tests) self.assertTrue(tests[0].endswith("_109029_23.tiff")) self.assertTrue(tests[1].endswith("junk_y_"))
def test_rename_files(self): with create_files(['junk<y>', 'notjunky']) as tests: renamed = files._rename_files(tests) self.assertTrue(renamed[0].endswith("junk_y_"))
def test_rename_files(self): with create_files(['junk<y>','notjunky']) as tests: renamed = files._rename_files(tests) self.assertTrue(renamed[0].endswith("junk_y_"))