diff tests/doctest.txt @ 52:59368c0bbd8d

* addition sdist tests * stub extracting the tarball
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 14:44:16 -0800
parents 6a8071eab89e
children a40f050812cb
line wrap: on
line diff
--- a/tests/doctest.txt	Thu Mar 01 14:33:50 2012 -0800
+++ b/tests/doctest.txt	Thu Mar 01 14:44:16 2012 -0800
@@ -7,6 +7,7 @@
     >>> import pkginfo
     >>> import shutil
     >>> import simpypi
+    >>> import tarfile
     >>> import tempfile
     >>> from paste.fixture import TestApp
 
@@ -42,10 +43,15 @@
     'HelloWorld'
     >>> sdist.version
     '0.0'
+    >>> sdist.home_page
+    'http://helloworld.example.com/'
+    >>> sdist.author
+    'Jeff Hammel'
 
 Install the package and inspect the installation::
 
     >>> tmpdir = tempfile.mkdtemp()
+    >>> archive = tarfile.TarFile.open(path)
     >>> shutil.rmtree(tmpdir)
 
 Upload the same package but with the wrong name::