mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
Test actually works now :)
This commit is contained in:
@@ -97,15 +97,11 @@ class CLITest(unittest.TestCase):
|
|||||||
output = StringIO.StringIO()
|
output = StringIO.StringIO()
|
||||||
plugins = disco.PluginsRegistry.find_all()
|
plugins = disco.PluginsRegistry.find_all()
|
||||||
if "apache" in plugins:
|
if "apache" in plugins:
|
||||||
|
from letsencrypt import cli
|
||||||
with mock.patch('letsencrypt.cli.sys.stdout', new=output):
|
args = ['--agree-eula', '--apache', '--authenticator', 'standalone']
|
||||||
self.assertRaises(SystemExit, self._call_stdout,
|
ret, _, _, _ = self._call(args)
|
||||||
['--agree-eula', '--apache', '--authenticator', 'standalone'])
|
self.assertTrue("Too many flags setting" in ret)
|
||||||
#import sys
|
# TODO add tests with a broken plugin, a missing plugin, etc
|
||||||
#sys.stderr.write(repr(self._call_stdout(['--agree-eula', '--apache', '--authenticator', 'standalone'])))
|
|
||||||
out = output.getvalue()
|
|
||||||
self.assertTrue("Too many flags setting" in out)
|
|
||||||
# TODO add tests with a broken plugin, a missing plugin, etc
|
|
||||||
|
|
||||||
def test_rollback(self):
|
def test_rollback(self):
|
||||||
_, _, _, client = self._call(['rollback'])
|
_, _, _, client = self._call(['rollback'])
|
||||||
|
|||||||
Reference in New Issue
Block a user