Example #1
0
    def test_determine_output_stem_directory(self):
        a = InputFileLoaderCheckerSaver()
        a.directory = os.path.join(self.tempdir.path, 'what')
        a._determine_output_stem()

        assert_equal(
            a._file_stem,
            os.path.join(self.tempdir.path, 'what', 'out0002', 'out0002'))
Example #2
0
 def test_determine_output_stem_create_directory(self):
     a = InputFileLoaderCheckerSaver()
     a.create_directory = False
     a._determine_output_stem()
     assert_equal(a._file_stem, '.\\out0002')
Example #3
0
 def test_determine_output_stem_prefix(self):
     a = InputFileLoaderCheckerSaver()
     a.prefix = 'hello_'
     a._determine_output_stem()
     assert_equal(a._file_stem, '.\\hello_0001\\hello_0001')
Example #4
0
    def test_determine_output_stem_defaults(self):
        a = InputFileLoaderCheckerSaver()
        a._determine_output_stem()

        assert_equal(a._file_stem, '.\\out0002\\out0002')
Example #5
0
 def test_determine_output_stem_overwrite(self):
     a = InputFileLoaderCheckerSaver()
     a.overwrite = True
     a._determine_output_stem()
     assert_equal(a._file_stem, '.\\out0001\\out0001')
Example #6
0
    def test_determine_output_stem_directory(self):
        a = InputFileLoaderCheckerSaver()
        a.directory = os.path.join(self.tempdir.path, 'what')
        a._determine_output_stem()

        assert_equal(a._file_stem, os.path.join(self.tempdir.path,'what', 'out0002', 'out0002'))
Example #7
0
 def test_determine_output_stem_prefix(self):
     a = InputFileLoaderCheckerSaver()
     a.prefix = 'hello_'
     a._determine_output_stem()
     assert_equal(a._file_stem, '.\\hello_0001\\hello_0001')
Example #8
0
 def test_determine_output_stem_create_directory(self):
     a = InputFileLoaderCheckerSaver()
     a.create_directory = False
     a._determine_output_stem()
     assert_equal(a._file_stem, '.\\out0002')
Example #9
0
 def test_determine_output_stem_overwrite(self):
     a = InputFileLoaderCheckerSaver()
     a.overwrite = True
     a._determine_output_stem()
     assert_equal(a._file_stem, '.\\out0001\\out0001')
Example #10
0
    def test_determine_output_stem_defaults(self):
        a = InputFileLoaderCheckerSaver()
        a._determine_output_stem()

        assert_equal(a._file_stem, '.\\out0002\\out0002')