ceph/teuthology/test/test_config.py
Zack Cerza f91f792c91 Add another config test
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-01 09:07:39 -05:00

20 lines
664 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/"
def test_set_nonstandard(self):
conf_obj = config.Config()
conf_obj.something = 'something else'
assert conf_obj.something == 'something else'