Added regression test for SF bug #561822: has_option() case sensitive.

This commit is contained in:
Fred Drake 2002-09-27 15:35:23 +00:00
parent c2ff9051d2
commit 309db061af
1 changed files with 5 additions and 0 deletions

View File

@ -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..."