ceph/teuthology/test/test_config.py
2013-09-24 10:09:04 -05:00

15 lines
492 B
Python

from .. import config
class TestConfig(object):
def test_get_ceph_git_base_default(self):
conf_obj = config.Config()
conf_obj.teuthology_yaml = ''
conf_obj.load_files()
assert conf_obj.ceph_git_base_url == "https://github.com/ceph/"
def test_set_ceph_git_base_via_private(self):
conf_obj = config.Config()
conf_obj._Config__conf['ceph_git_base_url'] = "git://ceph.com/"
assert conf_obj.ceph_git_base_url == "git://ceph.com/"