source: traclegosscript/anyrelease/traclegos/tests/test.py

Last change on this file was 4216, checked in by Jeff Hammel, 15 years ago

initial commit of TracLegos at trac-hacks, moved from https://svn.openplans.org/svn/trac/install/TracLegos

File size: 305 bytes
Line 
1#!/usr/bin/env python
2
3import doctest
4import os
5
6def 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
13if __name__ == '__main__':
14    run_tests()
Note: See TracBrowser for help on using the repository browser.