[Python-checkins] python/dist/src/Lib/test test_cfgparser.py,1.12,1.13

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
2002年9月27日 08:35:25 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv16570/Lib/test
Modified Files:
	test_cfgparser.py 
Log Message:
Added regression test for SF bug #561822: has_option() case sensitive.
Index: test_cfgparser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cfgparser.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_cfgparser.py	30 Jul 2002 23:26:01 -0000	1.12
--- test_cfgparser.py	27 Sep 2002 15:35:23 -0000	1.13
***************
*** 98,101 ****
--- 98,106 ----
 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):

AltStyle によって変換されたページ (->オリジナル) /