aspectlib.test
This module aims to be a lightweight and flexible alternative to the popular mock framework and more.