def METHOD_NAME(self):
    with patch(
            'magma.magmad.upgrade.magma_upgrader.call_process',
            mock.Mock(wraps=self._mock_call_process_success),
    ) as m:
        upgrader = self._get_upgrader('1.2.0-0')
        upgrader.perform_upgrade_if_necessary('1.1.0-0')
        self.assertEqual(0, m.call_count)