We'll walk through some of the simplest—and most useful—features of Mocker. To do that, we'll write tests that describe a class representing a specific mathematical operation (multiplication) which can be applied to the values of arbitrary other mathematical operation objects. In other words, we'll work on the guts of a spreadsheet program (or something similar).
We're going to use Mocker to create mock objects to stand in place of the real operation objects.
>>> from mocker import Mocker >>> import operations