Mercurial > hg > configuration
annotate tests/unit.py @ 11:e00afe2c83bf
stubbing configuration parser
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Mon, 26 Mar 2012 09:45:06 -0700 |
| parents | b3023ba3c9ca |
| 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 |
