@mock.patch('certbot._internal.main.plug_sel.choose_configurator_plugins')
def test_run_enhancement_not_supported(self, mock_choose):
    mock_choose.return_value = (null.Installer(self.config, 'null'), None)
    plugins = disco.PluginsRegistry.find_all()
    self.config.auto_hsts = True
    self.assertRaises(errors.NotSupportedError, main.run, self.config, plugins)
@mock.patch('certbot._internal.main.plug_sel.choose_configurator_plugins')
def test_run_enhancement_not_supported(self, mock_choose):
    mock_choose.return_value = (null.Installer(self.config, 'null'), None)
    plugins = disco.PluginsRegistry.find_all()
    self.config.auto_hsts = True
    self.assertRaises(errors.NotSupportedError, main.run, self.config, plugins)