Updated MockedVerb documentation

This commit is contained in:
Brad Warren
2015-10-23 16:55:10 -07:00
parent 7b0f3b00f2
commit 46fe8511cd
+7 -2
View File
@@ -372,8 +372,13 @@ class MockedVerb(object):
"""Simple class that can be used for mocking out verbs/subcommands.
Storing a dictionary of verbs and the functions that implement them
makes mocking much more complicated. This class can be used as a
simple context manager for mocking out verbs in CLI tests.
in letsencrypt.cli makes mocking much more complicated. This class
can be used as a simple context manager for mocking out verbs in CLI
tests. For example:
with MockedVerb("run") as mock_run:
self._call([])
self.assertEqual(1, mock_run.call_count)
"""
def __init__(self, verb_name):