Example #1
0
 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
Example #2
0
 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
Example #3
0
 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_"))
Example #4
0
 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_"))
Example #5
0
 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_"))
Example #6
0
 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_"))