annotate tests/test_htest.py @ 0:26f27678ae32

initial commit
author Jeff Hammel <k0scist@gmail.com>
date Fri, 09 Sep 2016 16:15:58 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/usr/bin/env python
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 """
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 unit tests for htest
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 """
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 import os
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 import sys
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 import tempfile
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 import unittest
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 # globals
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 here = os.path.dirname(os.path.abspath(__file__))
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 class htestUnitTest(unittest.TestCase):
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 def test_htest(self):
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 tf = tempfile.mktemp()
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 try:
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 # pass
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 pass
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 finally:
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 if os.path.exists(tf):
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 os.remove(tf)
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 if __name__ == '__main__':
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28 unittest.main()
26f27678ae32 initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29