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