mς
CγΈEc @ sr d Z d k Z d k l Z d Z d Z d e f d YZ d Z e d j o e i d d
n d S( sΓ Tests of examples from the online cookbook, so we don't break them
down the road. Unless we really mean to.
The ZConfig Cookbook is available online at:
http://dev.zope.org/Zope3/ZConfig
N( s TestBasec C s' | i } | d j o
d } n | S( Nt passwordt passwd( t keyt lower( R ( ( t: /data/zmath/zope/lib/python/ZConfig/tests/test_cookbook.pyt$ basic_key_mapping_password_to_passwd s
c C s | S( N( t section( R ( ( R t user_info_conversion$ s t CookbookTestCasec B s t Z d Z RS( Nc C s
| i d t } | i | d } | i | i i d | i | i i d | i | i i
d | i t | i d d S( Nsά
s
USERID 42
USERNAME foouser
PASSWORD yeah-right
i* t foousers
yeah-rightR (
t selft load_schema_textt __name__t schemat load_config_textt configt assertEqualt userinfot useridt usernameR t assert_t hasattr( R
R R
( ( R t test_rewriting_key_names* s ( R t
__module__R ( ( ( R R ( s c C s
t i t S( N( t unittestt makeSuiteR ( ( ( R t
test_suiteC s t __main__t defaultTestR (
t __doc__R t ZConfig.tests.supportt TestBaseR R R R R t main( R R R R R R ( ( R t ? s