Beispiel #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)
Beispiel #2
0
 def test_valid_dir(self):
     path = valid_output_stream_dir(self.dir, NullConfigContext)
     assert_equal(self.dir, path)
Beispiel #3
0
 def test_valid_dir(self):
     path = valid_output_stream_dir(self.dir, NullConfigContext)
     assert_equal(self.dir, path)
Beispiel #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)
Beispiel #5
0
 def test_valid_dir(self):
     assert_equal(self.dir, valid_output_stream_dir(self.dir))