From 309db061af45c9f85d9fafcbb5f39a332486906e Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 27 Sep 2002 15:35:23 +0000 Subject: [PATCH] Added regression test for SF bug #561822: has_option() case sensitive. --- Lib/test/test_cfgparser.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index fae8a1788ce..17f5ea68d4a 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..."