dobles

dobles is a Python package that provides test dobles for use in automated tests.

It provides functionality for stubbing, mocking, and verification of test dobles against the real objects they double. In contrast to the Mock package, it provides a clear, expressive syntax and better safety guarantees to prevent API drift and to improve confidence in tests using dobles. It comes with drop-in support for test suites run by Pytest, Nose, or standard unittest.

Indices and tables