Source

foonc / foonctest / __init__.py

import sys
import unittest

import foonc

def suite():
    suite = unittest.TestSuite()
    suite.addTests(foonc.suite())
    return suite

if __name__ == '__main__':
    runner = unittest.TextTestRunner()
    result = runner.run(suite())
    sys.exit(not result.wasSuccessful())