[ZPT] CVS: Packages/TAL - run.py:1.1

guido@digicool.com guido@digicool.com
Wed, 21 Mar 2001 17:38:21 -0500 (EST)


Update of /cvs-repository/Packages/TAL/test
In directory korak:/tmp/cvs-serv17490

Added Files:
	run.py 
Log Message:
Add a little ditty that runs both tests.



--- Added File run.py in package Packages/TAL ---
#! /usr/bin/env python1.5
"""Run all tests."""

import sys
import utils
import unittest
import test_htmlparser
import test_htmltalparser

def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(test_htmlparser.test_suite())
    suite.addTest(test_htmltalparser.test_suite())
    return suite

def main():
    return utils.run_suite(test_suite())

if __name__ == "__main__":
    errs = main()
    sys.exit(errs and 1 or 0)