def test_Authconfig_get_bool__true(): obj = Authconfig( get_config(''' test_a=True test_b=true test_c=Yes test_d=yes ''')) assert obj.get_bool('test_a') assert obj.get_bool('test_b') assert obj.get_bool('test_c') assert obj.get_bool('test_d')
def test_Authconfig_get_bool__false(): obj = Authconfig( get_config(''' test_a=False test_b=false test_c=No test_d=no ''')) assert not obj.get_bool('test_a') assert not obj.get_bool('test_b') assert not obj.get_bool('test_c') assert not obj.get_bool('test_d')
def test_Authconfig_get_bool__non_existent(): obj = Authconfig('') assert not obj.get_bool('non-existent-option')