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

Update cli tests

We don't expect to error out if called with no args
This commit is contained in:
Peter Eckersley
2015-09-29 14:48:40 -07:00
parent a0af023b14
commit 05d439a339

View File

@@ -40,7 +40,9 @@ class CLITest(unittest.TestCase):
return ret, stdout, stderr, client
def test_no_flags(self):
self.assertRaises(SystemExit, self._call, [])
with mock.patch('letsencrypt.cli.run') as mock_run:
self._call([])
self.assertEqual(1, mock_run.call_count)
def test_help(self):
self.assertRaises(SystemExit, self._call, ['--help'])