@@ -0,0 +1,949 @@
+import unittest%0A%0Afrom poachplatelib import package%0A%0Aclass TestScript(unittest.TestCase):%0A    def setUp(self):%0A        self.p = package.Package('test')%0A        self.p.generate()%0A%0A    def test_setup(self):%0A        self.assertEqual(self.p._setup, %22%22%22# Copyright (c) 2013 FILL IN%0Afrom distutils.core import setup%0A#from setuptools import setup%0A%0Afrom testlib import meta%0A%0Asetup(name='test',%0A      version=meta.__version__,%0A      author=meta.__author__,%0A      description='FILL IN',%0A      scripts=%5B'bin/test'%5D,%0A      package_dir=%7B'testlib':'testlib'%7D,%0A      packages=%5B'testlib'%5D,%0A)%0A%22%22%22)%0A%0A    def test_script(self):%0A        self.assertEqual(self.p._script, %22%22%22#!/usr/bin/env python%0A# Copyright (c) 2013 FILL IN%0A%0Aimport sys%0A%0Aimport testlib%0A%0Aif __name__ == '__main__':%0A    try:%0A        sys.exit(testlib.main(sys.argv))%0A    except Exception, e:%0A        sys.stderr.write('%25s%5C%5Cn'%25str(e))%0A        sys.exit(1)%0A%0A%22%22%22)%0A%0Aif __name__ == %22__main__%22:%0A    unittest.main()%0A

add a testcase to try