view profilemanager/tests/test.py @ 30:d9886a7e8df7

return the full directory path
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 16:53:33 -0700
parents d4f0c1c4d0eb
children 6f2ad307fdda
line wrap: on
line source

#!/usr/bin/env python

"""
doctest runner
"""

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()