view makeitso/python_package/tests/test_{{package}}.py @ 208:f7f7831f7c8c

add UTF-8 disclaimer
author Jeff Hammel <k0scist@gmail.com>
date Tue, 10 Feb 2015 13:19:01 -0800
parents 84be91d59996
children ee752ac566f1
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()