annotate tests/test_sqlitex.py @ 1:7f92e207830b default tip

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