'Prepare a patch for ``PipRequirement.is_installed`` method that
always returns ``True``, used for faking an installed ipdb.'

def pipReqIsInstalledMock(self):

    return patch('dependency_management.requirements.PipRequirement.PipRequirement.is_installed', (lambda self: True))
