annotate tests/test_fields.py @ 158:176aad184ad0

one more note to self
author Jeff Hammel <k0scist@gmail.com>
date Tue, 12 May 2015 16:51:10 -0700
parents 5b5e3a884b71
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/usr/bin/env python
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 unit tests
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 """
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 import os
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 import sys
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 import tempfile
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 import unittest
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 # globals
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 here = os.path.dirname(os.path.abspath(__file__))
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 class fieldsUnitTest(unittest.TestCase):
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 def test_fields(self):
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 tf = tempfile.mktemp()
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 try:
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 # pass
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 pass
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 finally:
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 if os.path.exists(tf):
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 os.remove(tf)
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 if __name__ == '__main__':
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 unittest.main()
5b5e3a884b71 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28