‡Æ
SNö9c       s   d  k  Z  d  k Z d „  Z d „  Z d „  Z d „  Z d „  Z d d „ Z d „  Z e d	 ƒ e d
 ƒ e ƒ  e ƒ  e ƒ  d  S(   Nc    sä   Hd GHt  i  ƒ  } t i |  ƒ } | i | ƒ | i ƒ  } | i ƒ  | GHx( | d r } d | | i
 | ƒ f GHqR W| i d d d d ƒGH| i d d d d ƒGH| i d	 d d d ƒGHd
 | 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œ   Hd GHt  i  h  d d <ƒ } t i |  ƒ } | i | ƒ | i d d ƒ GH| i d d ƒ GH| i d d ƒ GH| i d d ƒ GHt | 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      sj   Hd GHt  t i d ƒ t  t i d ƒ t  t i d ƒ t  t i d ƒ t  t i d ƒ t  t i 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æ   Hd GHt  i  ƒ  }  |  i ƒ  GHd G|  i d ƒ GHy |  i d ƒ Wn! t  i j
 o } d G| GHn Xd GHy |  i d d d ƒ Wn! t  i j
 o } d G| GHn Xd	 GHt |  t  i d d ƒ |  i	 d ƒ 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]   Hd GHt  i  ƒ  }  |  i d ƒ y |  i d ƒ Wn! t  i j
 o } d G| GHn Xd 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    sW   y |  i | | d | ƒWn* | j
 o } d G| i Gd GH| GHn Xd 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    s]   t  i  ƒ  } t i | ƒ } y | i | ƒ Wn |  j
 o } d G| GHn Xd 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   									


