Commit 67fc0a17 authored by Fred Drake's avatar Fred Drake

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

parent 4873eda7
...@@ -97,6 +97,11 @@ def case_sensitivity(): ...@@ -97,6 +97,11 @@ def case_sensitivity():
verify(cf.options("MySection") == ["option"]) verify(cf.options("MySection") == ["option"])
verify(cf.get("MySection", "Option") == "first line\nsecond line") 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): def boolean(src):
print "Testing interpretation of boolean Values..." print "Testing interpretation of boolean Values..."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment