'A test for a mock deploy cert'

def mock_deploy_cert(self, config):

    self.config.real_deploy_cert = self.config.deploy_cert
    def mocked_deploy_cert(*args, **kwargs):
        'a    helper    to    mock    a    deployed    cert'
        with mock.patch('certbot_apache.configurator.ApacheConfigurator.enable_mod'):
            config.real_deploy_cert(*args, **kwargs)
    self.config.deploy_cert = mocked_deploy_cert
    return self.config
