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)
def testfiledot(self): filename = 'test1.0.csv' new_filename = file_namer.number_file_names(filename) self.assertEqual('test1.0-1.csv', new_filename)
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)
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)
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)
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)