'Prepares the Nginx plugin for testing'

def _prepare_configurator(self):

    for k in constants.CLI_DEFAULTS.keys():
        setattr(self.le_config, ('nginx_' + k), constants.os_constant(k))
    conf = configuration.NamespaceConfig(self.le_config)
    zope.component.provideUtility(conf)
    self._configurator = configurator.NginxConfigurator(config=conf, name='nginx')
    self._configurator.prepare()
