Consider using the setUp() function to put the common code, like creating a new Mockery instance as well as setting up the various mocked instances rather than repeating them in every test case.