view makeitso/python_package/tests/test_{{package}}.py @ 262:0999d80b8e3c

[setup] bump version for distribution
author Jeff Hammel <k0scist@gmail.com>
date Sun, 13 Aug 2017 15:40:14 -0700
parents ee752ac566f1
children
line wrap: on
line source

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
unit tests for {{package}}
"""

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()