def test_DConf_get_string__ok(): obj = DConf( get_config(''' [section] test_a="str" test_b=str ''')) assert obj.get_string('section', 'test_a') == 'str' assert obj.get_string('section', 'test_b') == 'str'
def test_DConf_get_string__non_existent(): obj = DConf('') assert obj.get_string('section', 'non-existent-option') is None