view martini/tests/test.py @ 3:9e4da7517815

make a README file and include it in the setup.py
author k0s <k0scist@gmail.com>
date Tue, 02 Mar 2010 20:18:15 -0500
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()