changeset 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
files tests-require.txt tests/doctest.txt
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests-require.txt	Thu Mar 01 14:33:50 2012 -0800
+++ b/tests-require.txt	Thu Mar 01 14:44:16 2012 -0800
@@ -1,1 +1,2 @@
 Paste
+virtualenv
--- 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::