From: Fred Drake Date: Fri, 27 Sep 2002 15:35:23 +0000 (+0000) Subject: Added regression test for SF bug #561822: has_option() case sensitive. X-Git-Tag: v2.3c1~3965 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=309db061af45c9f85d9fafcbb5f39a332486906e;p=python Added regression test for SF bug #561822: has_option() case sensitive. --- diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index fae8a1788c..17f5ea68d4 100644 --- a/Lib/test/test_cfgparser.py +++ b/Lib/test/test_cfgparser.py @@ -97,6 +97,11 @@ def case_sensitivity(): verify(cf.options("MySection") == ["option"]) verify(cf.get("MySection", "Option") == "first line\nsecond line") + # SF bug #561822: + cf = ConfigParser.ConfigParser(defaults={"key":"value"}) + cf.readfp(StringIO.StringIO("[section]\nnekey=nevalue\n")) + verify(cf.has_option("section", "Key")) + def boolean(src): print "Testing interpretation of boolean Values..."