Introduction

mock is a python library than can be used together with unittest write better tests for your code. This document’s goal is to get the reader started quickly using mock. None of the examples below will be difficult to follow, but a basic knowledge of python and unittest library is recommended.