view makeitso/python_package/tests/test_{{package}}.py @ 204:388b4bb3516c

add hot install template
author Jeff Hammel <k0scist@gmail.com>
date Tue, 28 Oct 2014 13:47:43 -0700
parents 84be91d59996
children f7f7831f7c8c
line wrap: on
line source

#!/usr/bin/env python

"""
unit tests
"""

import os
import sys
import tempfile
import unittest

# globals
here = os.path.dirname(os.path.abspath(__file__))

class {{package}}UnitTest(unittest.TestCase):

    def test_{{package}}(self):
        tf = tempfile.mktemp()
        try:
            # pass
            pass
        finally:
            if os.path.exists(tf):
                os.remove(tf)

if __name__ == '__main__':
    unittest.main()