def test_does_not_exist(self): assert_equal( next_output_stem(prefix='g_', path=self.tempdir.path, start=4), 'g_004')
def test_inc(self): assert_equal( next_output_stem(prefix='a_', path=self.tempdir.path, inc=3), 'a_008')
def test_zfill(self): assert_equal( next_output_stem(prefix='a_', path=self.tempdir.path, zfill=5), 'a_00006')
def test_directory(self): assert_equal(next_output_stem(prefix='c_', path=self.tempdir.path), 'c_011')
def test_file_overwrite(self): assert_equal( next_output_stem(prefix='a_', path=self.tempdir.path, overwrite=True), 'a_005')
def test_file(self): assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path), 'a_006')
def test_file2(self): assert_equal(next_output_stem(prefix='b_', path=self.tempdir.path), 'b_009')
def test_zfill(self): assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path, zfill=5), 'a_00006')
def test_does_not_exist(self): assert_equal(next_output_stem(prefix='g_', path=self.tempdir.path, start=4), 'g_004')
def test_inc(self): assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path, inc=3), 'a_008')
def test_file_overwrite(self): assert_equal(next_output_stem(prefix='a_', path=self.tempdir.path, overwrite=True), 'a_005')