Mercurial > hg > martINI
view martini/tests/test.py @ 6:09bed87f7fa4
fix some errors
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 24 Nov 2010 10:49:37 -0800 |
parents | 3c3522ce6e3a |
children |
line wrap: on
line source
#!/usr/bin/env python import doctest import os def run_tests(): directory = os.path.dirname(os.path.abspath(__file__)) tests = [ test for test in os.listdir(directory) if test.endswith('.txt') ] for test in tests: doctest.testfile(test) if __name__ == '__main__': run_tests()