diff tests/test_ini.txt @ 54:f724db086125

houston, we have a pyloader
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 08 Jun 2011 23:29:50 -0700
parents f6616a5f468f
children 6b48dee5b92b
line wrap: on
line diff
--- a/tests/test_ini.txt	Wed Jun 08 23:20:24 2011 -0700
+++ b/tests/test_ini.txt	Wed Jun 08 23:29:50 2011 -0700
@@ -32,3 +32,10 @@
     True
     >>> [fib(i) for i in range(5)]
     [1, 1, 2, 3, 5]
+
+Now let's test a simple wrapper::
+
+    >>> fib = inifactory.load('readable-fibonacci')
+    >>> from pprint import pprint
+    >>> [fib(i) for i in range(5)]
+    ['one', 'one', 'two', 'three', 5]