# HG changeset patch # User Jeff Hammel # Date 1330641230 28800 # Node ID 6a8071eab89ebf6487919d85420b7004627d3a91 # Parent e4a97d6f2811a6da6bf7845e460ccb135bcddf00 add in smokescreen pkginfo tests diff -r e4a97d6f2811 -r 6a8071eab89e tests/doctest.txt --- 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)