source:
traclegosscript/anyrelease/traclegos/tests/test.py
| Last change on this file was 4216, checked in by , 15 years ago | |
|---|---|
| File size: 305 bytes | |
| Line | |
|---|---|
| 1 | #!/usr/bin/env python |
| 2 | |
| 3 | import doctest |
| 4 | import os |
| 5 | |
| 6 | def run_tests(): |
| 7 | directory = os.path.dirname(os.path.abspath(__file__)) |
| 8 | tests = [ test for test in os.listdir(directory) if test.endswith('.txt') ] |
| 9 | |
| 10 | for test in tests: |
| 11 | doctest.testfile(test) |
| 12 | |
| 13 | if __name__ == '__main__': |
| 14 | run_tests() |
Note: See TracBrowser
for help on using the repository browser.
