Mercurial > hg > pyloader
diff tests/test_ini.txt @ 59:6b48dee5b92b
add a failing test for wrapper of type [foo:@:fibonacci]
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 08:17:08 -0700 |
parents | f724db086125 |
children | 926caecf385d |
line wrap: on
line diff
--- a/tests/test_ini.txt Wed Jun 08 23:47:52 2011 -0700 +++ b/tests/test_ini.txt Thu Jun 09 08:17:08 2011 -0700 @@ -33,9 +33,12 @@ >>> [fib(i) for i in range(5)] [1, 1, 2, 3, 5] -Now let's test a simple wrapper:: +Now let's test a simple wrapper, [readable-fibonacci:@:%(here)s/objects.py:fib]:: >>> fib = inifactory.load('readable-fibonacci') - >>> from pprint import pprint >>> [fib(i) for i in range(5)] ['one', 'one', 'two', 'three', 5] + +A different kind of wrapper, [foo:@:fibonacci]:: + + >>> fib = inifactory.load('foo')