annotate tests/test_generate.py @ 131:90f153216880

dont need this either
author Jeff Hammel <k0scist@gmail.com>
date Mon, 16 Mar 2015 21:38:40 -0700
parents 8448c62a4917
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
87
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/usr/bin/env python
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 """
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 unit tests for generate
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 """
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 import os
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 import sys
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 import tempfile
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 import unittest
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 # globals
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 here = os.path.dirname(os.path.abspath(__file__))
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 class generateUnitTest(unittest.TestCase):
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 def test_generate(self):
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 tf = tempfile.mktemp()
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 try:
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 # pass
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 pass
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 finally:
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 if os.path.exists(tf):
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 os.remove(tf)
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 if __name__ == '__main__':
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28 unittest.main()
8448c62a4917 almost to output; frange done
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29