annotate tests/test_hls.py @ 1:9f80b2c05268

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