annotate tests/test_tvii.py @ 3:14d65b83c299

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