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