mc = MyClass()
self.assertEqual(mc.foo('spam', 'ham', 'eggs'), (12, 40, 28))
mocked_bar.assert_called_with('spam', 'ham', 'eggs')
Python Mock - How to get the return of a MagicMock as if it was a normal method