Understand a Basic Example
The setUp()
and tearDown()
methods allow you to define instructions that will be executed before and after each test method. They are covered in more detail in the section Organizing test code. The basic examples show the most commonly used unittest
features which are sufficient to meet many everyday testing ne