changeset 74:84890934af1f

start tests for third-party sanity check; first up setup() -> metadata conversion
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 27 Jan 2013 19:03:42 -0800
parents 5b10f2c03cb9
children 0f62570e80f3
files paint/info.py tests/sanity.txt
diffstat 2 files changed, 20 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/paint/info.py	Sun Jan 27 18:19:14 2013 -0800
+++ b/paint/info.py	Sun Jan 27 19:03:42 2013 -0800
@@ -34,7 +34,7 @@
     convert setup arguments to standard python metadata:
     http://www.python.org/dev/peps/pep-0314/
     """
-    distribution = Distribution(kwargs)
+    distribution = Distribution(attrs)
     buffer = StringIO()
     distribution.metadata.write_pkg_file(buffer)
     raise NotImplementedError("TODO")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/sanity.txt	Sun Jan 27 19:03:42 2013 -0800
@@ -0,0 +1,19 @@
+Sanity Check
+============
+
+Imports::
+
+    >>> import pkginfo
+    >>> from distutils.dist import Distribution
+    >>> from StringIO import StringIO
+
+Representative metadata::
+
+    >>> attrs = dict(name='name', version='0.0', description='description')
+
+Make a distribution::
+
+    >>> distribution = Distribution(attrs)
+    >>> buffer = StringIO()
+    >>> distribution.metadata.write_pkg_file(buffer)
+    >>> pkginfo_dist = pkginfo.Distribution()