diff examples/doctest.txt @ 36:0cba953a03ca

fixed single-file test case
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 01 Jan 2011 22:13:33 -0800
parents 7e47ff4b0cd3
children 7cee2869bd7b
line wrap: on
line diff
--- a/examples/doctest.txt	Sat Jan 01 21:58:34 2011 -0800
+++ b/examples/doctest.txt	Sat Jan 01 22:13:33 2011 -0800
@@ -14,13 +14,13 @@
     >>> template.missing()
     set(['name'])
     >>> template.substitute(name='foo')
-    None
+    Hello foo
     
 Substitute to a buffer:
 
     >>> buffer = StringIO()
     >>> template = makeitso.PolyTemplate([example], output=buffer, interactive=False)
     >>> template.substitute(name='bar')
-    None
-    >>> buffer.getvalue()
+    >>> buffer.getvalue().strip()
+    'Hello bar'