def test_Authconfig_get_string__ok(): obj = Authconfig(get_config(''' test_a="str" test_b=str ''')) assert obj.get_string('test_a') == 'str' assert obj.get_string('test_b') == 'str'
def test_Authconfig_get_string__non_existent(): obj = Authconfig('') assert obj.get_string('non-existent-option') is None