Mercurial > hg > simpypi
changeset 51:6a8071eab89e
add in smokescreen pkginfo tests
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 14:33:50 -0800 |
parents | e4a97d6f2811 |
children | 59368c0bbd8d |
files | tests/doctest.txt |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/doctest.txt Thu Mar 01 14:26:28 2012 -0800 +++ b/tests/doctest.txt Thu Mar 01 14:33:50 2012 -0800 @@ -4,6 +4,7 @@ The obligatory imports:: >>> import os + >>> import pkginfo >>> import shutil >>> import simpypi >>> import tempfile @@ -35,6 +36,15 @@ Ensure the package is what you expect it to be:: + >>> path = os.path.join(directory, 'HelloWorld', 'HelloWorld-0.0.tar.gz') + >>> sdist = pkginfo.sdist.SDist(path) + >>> sdist.name + 'HelloWorld' + >>> sdist.version + '0.0' + +Install the package and inspect the installation:: + >>> tmpdir = tempfile.mkdtemp() >>> shutil.rmtree(tmpdir)