Ejemplo n.º 1
0
 def test_does_not_exist(self):
     assert_equal(
         next_output_stem(prefix='g_', path=self.tempdir.path, start=4),
         'g_004')
Ejemplo n.º 2
0
 def test_inc(self):
     assert_equal(
         next_output_stem(prefix='a_', path=self.tempdir.path, inc=3),
         'a_008')
Ejemplo n.º 3
0
 def test_zfill(self):
     assert_equal(
         next_output_stem(prefix='a_', path=self.tempdir.path, zfill=5),
         'a_00006')
Ejemplo n.º 4
0
 def test_directory(self):
     assert_equal(next_output_stem(prefix='c_', path=self.tempdir.path),
                  'c_011')
Ejemplo n.º 5
0
 def test_file_overwrite(self):
     assert_equal(
         next_output_stem(prefix='a_',
                          path=self.tempdir.path,
                          overwrite=True), 'a_005')
Ejemplo n.º 6
0
 def test_file(self):
     assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path),
                  'a_006')
Ejemplo n.º 7
0
 def test_file2(self):
     assert_equal(next_output_stem(prefix='b_', path=self.tempdir.path),
                  'b_009')
Ejemplo n.º 8
0
 def test_zfill(self):
     assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path,
                                   zfill=5),
                  'a_00006')
Ejemplo n.º 9
0
 def test_does_not_exist(self):
     assert_equal(next_output_stem(prefix='g_', path=self.tempdir.path,
                                   start=4),
                  'g_004')
Ejemplo n.º 10
0
 def test_inc(self):
     assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path,
                                   inc=3),
                  'a_008')
Ejemplo n.º 11
0
 def test_file_overwrite(self):
     assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path,
                                   overwrite=True),
                  'a_005')
Ejemplo n.º 12
0
 def test_directory(self):
     assert_equal(next_output_stem(prefix='c_', path=self.tempdir.path),
                  'c_011')
Ejemplo n.º 13
0
 def test_file2(self):
     assert_equal(next_output_stem(prefix='b_', path=self.tempdir.path),
                  'b_009')
Ejemplo n.º 14
0
 def test_file(self):
     assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path),
                  'a_006')