mock module in Python

Let’s discuss a mock module of python, its uses and significance.

We'll cover the following...

The unittest module now includes a mock submodule as of Python 3.3. It will allow us to replace portions of the system that we are testing with mock objects as well as make assertions about how they were used. A mock object is used for simulating system resources that aren’t available in our test environment. In other words, we will find ...

Access this course and 1400+ top-rated courses and projects.