Beispiel #1
0
 def testfolderdash2(self):
     filename = '/home/home/t-5/pvt/stuff-1.csv'
     new_filename = file_namer.number_file_names(filename)
     self.assertEqual('/home/home/t-5/pvt/stuff-2.csv', new_filename)
Beispiel #2
0
 def testfiledot(self):
     filename = 'test1.0.csv'
     new_filename = file_namer.number_file_names(filename)
     self.assertEqual('test1.0-1.csv', new_filename)
Beispiel #3
0
 def testfilenumber10(self):
     # Test sequential numbering with two digits
     filename = 'stuff-10.csv'
     new_filename = file_namer.number_file_names(filename)
     self.assertEqual('stuff-11.csv', new_filename)
Beispiel #4
0
 def testfilenumber2(self):
     # Test sequential numbering
     filename = 'stuff-1.csv'
     new_filename = file_namer.number_file_names(filename)
     self.assertEqual('stuff-2.csv', new_filename)
Beispiel #5
0
 def testfilenumber1(self):
     # Test numbering of first string
     filename = 'stuff.csv'
     new_filename = file_namer.number_file_names(filename)
     self.assertEqual('stuff-1.csv', new_filename)
Beispiel #6
0
 def testfolderdot10(self):
     filename = '/home/home/t5/.pvt/stuff-10.csv'
     new_filename = file_namer.number_file_names(filename)
     self.assertEqual('/home/home/t5/.pvt/stuff-11.csv', new_filename)