Mercurial > hg > pyloader
changeset 79:122e3eddcdeb
test for verbose decorators
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 11 Jun 2011 14:56:43 -0700 |
parents | 2449fb4a89c1 |
children | c852ff04c940 |
files | tests/test_ini.txt |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_ini.txt Sat Jun 11 14:53:07 2011 -0700 +++ b/tests/test_ini.txt Sat Jun 11 14:56:43 2011 -0700 @@ -63,3 +63,10 @@ >>> extended2 = inifactory.load('extended-fibonacci-2') >>> [extended2(i) for i in range(6)] ['one', 'one', 'two', 'three', 'five', 'eight'] + +You can do arguments more verbosely too. extended-fibonacci-3 +should be identical to extended-fibonacci but more broken up:: + + >>> extended3 = inifactory.load('extended-fibonacci-3') + >>> [extended3(i) for i in range(6)] + ['one', 'one', 'two', 'three', 'five', 8]