Mercurial > hg > configuration
annotate tests/unit.py @ 12:db43d30afcf5
note pattern to use
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 26 Mar 2012 10:39:01 -0700 |
parents | e00afe2c83bf |
children | cadc9514f60a |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 | |
3 """ | |
4 unit tests | |
5 """ | |
6 | |
7 import os | |
8 import sys | |
9 import unittest | |
10 | |
11
e00afe2c83bf
stubbing configuration parser
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
11 import example # example configuration to test |
e00afe2c83bf
stubbing configuration parser
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
12 |
0 | 13 # globals |
14 here = os.path.dirname(os.path.abspath(__file__)) | |
15 | |
16 class configurationUnitTest(unittest.TestCase): | |
17 | |
18 def test_configuration(self): | |
11
e00afe2c83bf
stubbing configuration parser
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
19 |
0 | 20 |
21 if __name__ == '__main__': | |
22 unittest.main() | |
23 |