‡Æ
SNö9c       s®      d  k  Z   d  k Z  d „  Z  d „  Z ( d „  Z 8 d „  Z N d „  Z Z d d „ Z c d „  Z m e d	 ƒ u e d
 ƒ ‹ e ƒ  Œ e ƒ   e ƒ  d  S(   Nc    s    H d GH t  i  ƒ  }  t i |  ƒ } 	 | i | ƒ 
 | i ƒ  }  | i ƒ   | GH x. | d  r! }  d | | i
 | ƒ f GHqp W | i d d d d ƒGH | i d d d d ƒGH | i d	 d d d ƒGH d
 | i
 d ƒ j o  d GHn	  d GHd  S(   Ns   Testing basic accessors...i    s   %s: %ss   Foo Bars   foos   rawi   s
   Spacey Bars   Commented Bars   __name__s3   __name__ "option" should not be exposed by the API!s-   __name__ "option" properly hidden by the API.(   s   ConfigParsers   cfs   StringIOs   srcs   sios   readfps   sectionss   Ls   sorts   ss   optionss   get(   s   srcs   cfs   sios   Ls   ss0   /mit/python/lib/python2.0/test/test_cfgparser.pys   basic s"    	c    s½     H d GH t  i  h  d d <ƒ }   t i |  ƒ } ! | i | ƒ " | i d d ƒ GH# | i d d ƒ GH$ | i d d ƒ GH% | i d d ƒ GH& t | t  i d d ƒ d  S(	   Ns   Testing value interpolation...s   %(__name__)ss   getnames   Foos   bars   bar9s   bar10s   bar11(	   s   ConfigParsers   cfs   StringIOs   srcs   sios   readfps   gets   expect_get_errors   InterpolationDepthError(   s   srcs   cfs   sios0   /mit/python/lib/python2.0/test/test_cfgparser.pys   interpolation s   c      s—   ( ) H* d GH+ t  t i , d ƒ - t  t i . d ƒ / t  t i 0 d ƒ 1 t  t i 2 d ƒ 3 t  t i 4 d ƒ 5 t  t i 6 d ƒ d  S(   Ns   Testing for parsing errors...s   [Foo]
  extra-spaces: splat
s   [Foo]
  extra-spaces= splat
s   [Foo]
option-without-value
s!   [Foo]
:value-without-option-name
s!   [Foo]
=value-without-option-name
s   No Section!
(   s   expect_parse_errors   ConfigParsers   ParsingErrors   MissingSectionHeaderError(    s0   /mit/python/lib/python2.0/test/test_cfgparser.pys   parse_errors( s   




c     s  8 9 H: d GH; t  i  ƒ  }  < |  i ƒ  GH= d G|  i d ƒ GH> y ? |  i d ƒ Wn' @ t  i j
 o } A d G| GHn
 XC d GHD y E |  i d d d ƒ Wn' F t  i j
 o } G d G| GHn
 XI d	 GHJ t |  t  i d d ƒ K |  i	 d ƒ L t |  t  i
 d d ƒ d  S(
   Ns   Testing query interface...s   Has section 'Foo'?s   Foos   Caught expected NoSectionError:s6   Failed to catch expected NoSectionError from options()s   foos   bars   values2   Failed to catch expected NoSectionError from set()(   s   ConfigParsers   cfs   sectionss   has_sections   optionss   NoSectionErrors   es   sets   expect_get_errors   add_sections   NoOptionError(   s   cfs   es0   /mit/python/lib/python2.0/test/test_cfgparser.pys   query_errors8 s$   c     s{   N O HP d GHQ t  i  ƒ  }  R |  i d ƒ S y T |  i d ƒ Wn' U t  i j
 o } V d G| GHn
 XX d GHd  S(   Ns)   Testing miscellaneous error conditions...s   Foos&   Caught expected DuplicateSectionError:s.   Failed to catch expected DuplicateSectionError(   s   ConfigParsers   cfs   add_sections   DuplicateSectionErrors   e(   s   cfs   es0   /mit/python/lib/python2.0/test/test_cfgparser.pys   weird_errorsN s   c    sl   Z [ y \ |  i | | d | ƒWn3 ] | j
 o$ } ^ d G| i Gd GH_ | GHn Xa d G| i GHd  S(   Ns   raws   Caught expecteds   :s   Failed to catch expected(   s   cfs   gets   sections   options   raws   exctypes   es   __name__(   s   cfs   exctypes   sections   options   raws   es0   /mit/python/lib/python2.0/test/test_cfgparser.pys   expect_get_errorZ s   i    c    su   c d t  i  ƒ  } e t i | ƒ } f y g | i | ƒ Wn$ h |  j
 o } i d G| GHn Xk d G|  i GHd  S(   Ns   Caught expected exception:s   Failed to catch expected(	   s   ConfigParsers   cfs   StringIOs   srcs   sios   readfps   exctypes   es   __name__(   s   exctypes   srcs   cfs   sios   es0   /mit/python/lib/python2.0/test/test_cfgparser.pys   expect_parse_errorc s   sN   
[Foo Bar]
foo=bar
[Spacey Bar]
foo = bar 
[Commented Bar]
foo: bar ; comment
sÁ  
[Foo]
bar=something %(with1)s interpolation (1 step)
bar9=something %(with9)s lots of interpolation (9 steps)
bar10=something %(with10)s lots of interpolation (10 steps)
bar11=something %(with11)s lots of interpolation (11 steps)
with11=%(with10)s
with10=%(with9)s
with9=%(with8)s
with8=%(with7)s
with7=%(with6)s
with6=%(with5)s
with5=%(with4)s
with4=%(with3)s
with3=%(with2)s
with2=%(with1)s
with1=with

[Mutual Recursion]
foo=%(bar)s
bar=%(foo)s
(	   s   ConfigParsers   StringIOs   basics   interpolations   parse_errorss   query_errorss   weird_errorss   expect_get_errors   expect_parse_error(    s0   /mit/python/lib/python2.0/test/test_cfgparser.pys   ? s   	


