Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_unittest.py |
"""Test script for unittest. This just includes tests for new features. We really need a full set of tests. """ import unittest def test_TestSuite_iter(): """ >>> test1 = unittest.FunctionTestCase(lambda: None) >>> test2 = unittest.FunctionTestCase(lambda: None) >>> suite = unittest.TestSuite((test1, test2)) >>> tests = [] >>> for test in suite: ... tests.append(test) >>> tests == [test1, test2] True """ ###################################################################### ## Main ###################################################################### def test_main(): from test import test_support, test_unittest test_support.run_doctest(test_unittest, verbosity=True) if __name__ == '__main__': test_main()