view profilemanager/tests/test.py @ 15:543d08958b67

actually sample 8 random lowercase letters and numbers for the profile hash
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 11:06:59 -0700
parents a07e53273b70
children 5988a15da3b4
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()