Exemplo n.º 1
0
 def test_one_exists(self):
     """mkdir_seq: increment number if file exists"""
     firstdir = mkdir_seq(self.srcdir+'/DD-')
     newdir = mkdir_seq(self.srcdir+'/DD-')
     self.assertEqual(newdir, self.srcdir+'/DD-2')
     self.assertTrue(os.path.isdir(newdir))
     self.assertTrue(os.path.isdir(firstdir))
Exemplo n.º 2
0
 def test_one_exists(self):
     """mkdir_seq: increment number if file exists"""
     firstdir = mkdir_seq(self.srcdir + '/DD-')
     newdir = mkdir_seq(self.srcdir + '/DD-')
     self.assertEqual(newdir, self.srcdir + '/DD-2')
     self.assertTrue(os.path.isdir(newdir))
     self.assertTrue(os.path.isdir(firstdir))
Exemplo n.º 3
0
 def test_one_exists(self):
     """mkdir_seq: increment number if file exists"""
     firstdir = mkdir_seq(self.srcdir+'/DD-')
     newdir = mkdir_seq(self.srcdir+'/DD-')
     assert newdir == self.srcdir+'/DD-2'
     assert os.path.isdir(newdir)
     assert os.path.isdir(firstdir)
Exemplo n.º 4
0
 def test_basic(self):
     """mkdir_seq: first dir ends with 1"""
     newdir = mkdir_seq(self.srcdir+'/DD-')
     self.assertEqual(newdir, self.srcdir+'/DD-1')
     self.assertTrue(os.path.isdir(newdir))
Exemplo n.º 5
0
 def test_basic(self):
     """mkdir_seq: first dir ends with 1"""
     newdir = mkdir_seq(self.srcdir + '/DD-')
     self.assertEqual(newdir, self.srcdir + '/DD-1')
     self.assertTrue(os.path.isdir(newdir))
Exemplo n.º 6
0
 def test_basic(self):
     """mkdir_seq: first dir ends with 1"""
     newdir = mkdir_seq(self.srcdir+'/DD-')
     assert newdir == self.srcdir+'/DD-1'
     assert os.path.isdir(newdir)