Mercurial > hg > pyloader
diff tests/test_ini.txt @ 64:f0f3525486db
test calling the section wrapper, [foo:@:fibonacci]
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 09:17:59 -0700 |
parents | 97800b02f636 |
children | b9d9a94bfa19 |
line wrap: on
line diff
--- a/tests/test_ini.txt Thu Jun 09 09:15:48 2011 -0700 +++ b/tests/test_ini.txt Thu Jun 09 09:17:59 2011 -0700 @@ -39,11 +39,12 @@ >>> [fib(i) for i in range(5)] ['one', 'one', 'two', 'three', 5] -A different kind of wrapper, [foo:@:fibonacci]:: +A different kind of wrapper, wrapping a section, [foo:@:fibonacci]:: >>> fib = inifactory.load('foo') >>> 'objects.py.Wrapper' in repr(fib) True >>> inifactory.config['foo']['kwargs']['app'] '%(fibonacci)s' - + >>> [fib(i) for i in range(6)] + ['one', 'one', 'two', 'three', 5, 8]