1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-21 19:01:07 +03:00

More sphinxiness, more clarity

This commit is contained in:
Peter Eckersley
2015-10-18 11:05:46 -07:00
parent d6345a47c5
commit 995c1dfb83
2 changed files with 5 additions and 2 deletions

View File

@@ -323,7 +323,7 @@ def diagnose_configurator_problem(cfg_type, requested, plugins):
:param string requested: the plugin that was requested
:param PluginRegistry plugins: available plugins
:raises error.ConfiguratorError if there was a problem
:raises error.ConfiguratorError: if there was a problem
"""
if requested:

View File

@@ -98,10 +98,13 @@ class CLITest(unittest.TestCase):
plugins = disco.PluginsRegistry.find_all()
args = ['--agree-eula', '--apache', '--authenticator', 'standalone']
ret, _, _, _ = self._call(args)
# TODO replace these cases with .mockery to test both paths regardless
# of what's actually installed
if "apache" in plugins:
self.assertTrue("Too many flags setting" in ret)
else:
self.assertTrue("The requested apache plugin does not" in ret)
self.assertTrue("The requested apache plugin does not appear" in ret)
def test_rollback(self):
_, _, _, client = self._call(['rollback'])