Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/test/test_cfgparser.pyc
mò ‚=5Dc @ s¨ d k Z d k Z d k Z d k l Z d e i f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z e d j o e ƒ n d S( N( s test_supportt TestCaseBasec B sž t Z d d „ Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nc C s9 | d j o | i ƒ | _ n | i | ƒ | _ | i S( N( t defaultst Nonet selft config_classt cf( R R ( ( t) /usr/lib/python2.4/test/test_cfgparser.pyt newconfig s c C s/ | i | ƒ } t i | ƒ } | i | ƒ | S( N( R R R R t StringIOt stringt siot readfp( R R R R R ( ( R t fromstring s c C sy | i d ƒ } | i ƒ } | i ƒ | i } | | d d d d d d d g ƒ | | i d d ƒ d ƒ | | i d d ƒ d ƒ | | i d d ƒ d ƒ | | i d d ƒ d ƒ | | i d d ƒ d ƒ | i d | i d ƒ j d ƒ | i | i d d ƒ d ƒ | i | i d d ƒ d ƒ | i | i d d ƒ d ƒ | i t i | i d d ƒ | | i d d ƒ d ƒ d S( NsQ [Foo Bar] foo=bar [Spacey Bar] foo = bar [Commented Bar] foo: bar ; comment [Long Line] foo: this line is much, much longer than my editor likes it. [Section\with$weird%characters[ ] [Internationalized Stuff] foo[bg]: Bulgarian foo=Default foo[en]=English foo[de]=Deutsch [Spaces] key with spaces : value another with spaces = splat! s Commented Bars Foo Bars Internationalized Stuffs Long Lines Section\with$weird%characters[ t Spacess Spacey Bart foot bars key with spacest values another with spacess splat!t __name__s3 __name__ "option" should not be exposed by the API!s4 remove_option() failed to report existance of options' remove_option() failed to remove optionsI remove_option() failed to report non-existance of option that was removeds No Such Sections7 this line is much, much longer than my editor likes it.( R R R t sectionst Lt sortt assertEqualt eqt gett failIft optionst failUnlesst remove_optiont has_optiont assertRaisest ConfigParsert NoSectionError( R R R R ( ( R t test_basic s, "c C sÍ | i ƒ } | i d ƒ | i d ƒ | i ƒ } | i ƒ | i } | | d d g ƒ | i d d d ƒ | | i d ƒ d g ƒ | | i d d ƒ d d ƒ | i | i d d ƒ ƒ | i d d d ƒ x* d D]"