Example #1
0
 def test_missing_with_partial_context(self):
     dir = '/bogus/path/does/not/exist'
     context = config_utils.PartialConfigContext('path', 'MASTER')
     path = config_parse.valid_output_stream_dir(dir, context)
     assert_equal(path, dir)
Example #2
0
 def test_valid_dir(self):
     path = valid_output_stream_dir(self.dir, NullConfigContext)
     assert_equal(self.dir, path)
Example #3
0
 def test_valid_dir(self):
     path = valid_output_stream_dir(self.dir, NullConfigContext)
     assert_equal(self.dir, path)
Example #4
0
 def test_missing_with_partial_context(self):
     dir = '/bogus/path/does/not/exist'
     context = config_utils.PartialConfigContext('path', 'MASTER')
     path = config_parse.valid_output_stream_dir(dir, context)
     assert_equal(path, dir)
Example #5
0
 def test_valid_dir(self):
     assert_equal(self.dir, valid_output_stream_dir(self.dir))