# Python Everyday 30: setUp() and tearDown()

During the unit test, ‘setUp()’ runs before each test case and ‘tearDown()’ runs after each test case. Here is a sample:

model.py:

test.py:

Outputs: