| ) |
| testFunc[, setUp[, tearDown[, description]]]) |
| [tests]) |
| ) |
| [stream[, descriptions[, verbosity]]]) |
| [module[, defaultTest[, argv[, testRunner[, testRunner]]]]]) |
if __name__ == '__main__':
unittest.main()
場合によっては、doctest モジュールを使って書かれた 既存のテストがあります。その場合、モジュールは 既存のテストコードから unittest.TestSuite インスタンスを 自動的に構築できる DocTestSuite クラスを提供します。 バージョン 2.3 で 新たに追加 された仕様です。
ご意見やご指摘をお寄せになりたい方は、 このドキュメントについて... をご覧ください。