diff tests/doctest.txt @ 10:d1f090c5f291

lets make some more tests
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 13:23:47 -0700
parents aa673036ecc1
children f522620c6a78
line wrap: on
line diff
--- a/tests/doctest.txt	Fri Jul 08 13:10:20 2011 -0700
+++ b/tests/doctest.txt	Fri Jul 08 13:23:47 2011 -0700
@@ -19,6 +19,18 @@
     >>> os.listdir('.')
     ['foo.py']
 
+Invoke the foo.py it creates::
+
+    >>> import subprocess
+    >>> subprocess.call([python, 'foo.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+    0
+    >>> sorted(os.listdir('.'))
+    ['foo', 'foo.py']
+    >>> os.path.isdir('foo')
+    True
+    >>> sorted(os.listdir(os.path.join('foo', 'src')))
+    ['packageA', 'packageB']
+
 Clean up::
 
     >>> import shutil