The Python unit testing framework comes with what are called Fixtures.
Refer to the following URLs for a description of what a test fixture is:
- https://docs.python.org/3.6/library/unittest.html
- https://en.wikipedia.org/wiki/Test_fixture
- http://www.boost.org/doc/libs/1_51_0/libs/test/doc/html/utf/user-guide/fixture.html
What this means is that we can create setup() and teardown() unit testing methods so that the setup() method is called at the beginning before any single test is executed, and at the end of every single unit test, the teardown() method is called.
Let's ...