Mercurial > hg > MakeItSo
comparison makeitso/python_package/tests/unit.py @ 147:bdf4049e83ea
add a unit test skeleton
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 05 Mar 2012 15:08:24 -0800 |
parents | |
children | e3ba71e7b927 |
comparison
equal
deleted
inserted
replaced
146:ebaee69c5ea4 | 147:bdf4049e83ea |
---|---|
1 #!/usr/bin/env python | |
2 | |
3 """ | |
4 unit tests | |
5 """ | |
6 | |
7 import os | |
8 import sys | |
9 import unittest | |
10 | |
11 # globals | |
12 here = os.path.dirname(os.path.abspath(__file__)) | |
13 | |
14 class {{Package}}UnitTest(unittest.TestCase): | |
15 | |
16 def test_{{package}}(self): | |
17 pass | |
18 | |
19 if __name__ == '__main__': | |
20 unittest.main() |