# HG changeset patch # User Jeff Hammel # Date 1359342222 28800 # Node ID 84890934af1fe04c2acfa6667b0e2729dbbaba3a # Parent 5b10f2c03cb97839cb18d893ff71bd11959243dc start tests for third-party sanity check; first up setup() -> metadata conversion diff -r 5b10f2c03cb9 -r 84890934af1f paint/info.py --- 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") diff -r 5b10f2c03cb9 -r 84890934af1f tests/sanity.txt --- /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()