Python Unit Testing (original) (raw)

Skip to content

In this section, you’ll learn about unit testing in Python by using the unittest modules to make your code more robust.

What you’ll learn: #

Section 1. Introduction to unit testing in Python #

This section introduces you to the unit testing and the unittest module. After completing this section, you’ll know how to define and execute unit tests effectively.

Section 2. assert methods #

This section covers the assert methods so that you know how to each of them more effectively.

Section 3. Test doubles #

This section introduces to you the test doubles to decouple the system under test code from the rest of the system so that code can be tested in isolation.

Section 4. Test coverage & Parameterized tests #

This section introduces you to the test coverage and how to define parameterized tests using the subTest() context manager.

Was this tutorial helpful ?