with mock.patch.object(MyClassUnderTest, 'submethod') as submethod_mocked:
    submethod_mocked.return_value = 13
MyClassUnderTest().main_method()
submethod_mocked.assert_called_once_with(user_id, 100, self.context, self.
    account_type)
Mocking only a single method on an object