Mercurial > hg > simpypi
diff tests/doctest.txt @ 53:a40f050812cb
start inspecting archive contents
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 14:48:39 -0800 |
parents | 59368c0bbd8d |
children | 73e6956c670a |
line wrap: on
line diff
--- a/tests/doctest.txt Thu Mar 01 14:44:16 2012 -0800 +++ b/tests/doctest.txt Thu Mar 01 14:48:39 2012 -0800 @@ -52,6 +52,13 @@ >>> tmpdir = tempfile.mkdtemp() >>> archive = tarfile.TarFile.open(path) + >>> for member in archive.getmembers(): + ... archive.extract(member, path=tmpdir) + >>> os.listdir(tmpdir) + ['HelloWorld-0.0'] + >>> srcdir = os.path.join(tmpdir, 'HelloWorld-0.0') + >>> os.path.exists(os.path.join(srcdir, 'setup.py')) + True >>> shutil.rmtree(tmpdir) Upload the same package but with the wrong name::