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