Open3
pythonのunittestについてちゃんと学びたい

例外のテスト

unittest.mock.patch

unittestが実現したいこと
- automation
- sharing of setup and shutdown code for tests
- aggregation of tests into collections
- independence of the tests from the reporting framework
上記の実現のためにunittestがサポートするObject指向なやり方での概念
-
test fixture(備品・設備)
the preparation needed to perform one or more tests, and any associated cleanup actions. -
test case
-
test suite
-
test runner