commit 33cd87351b3bfa945a5f741078d6795c18dd3972 Author: Sean Robinson seankrobinson@gmail.com Date: Sat Dec 22 03:27:01 2012 -0700
Corrects pydocs for mocking.get_object
Signed-off-by: Sean Robinson seankrobinson@gmail.com --- test/mocking.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/mocking.py b/test/mocking.py index a86b958..6784bde 100644 --- a/test/mocking.py +++ b/test/mocking.py @@ -441,8 +441,8 @@ def get_all_combinations(attr, include_empty = False):
def get_object(object_class, methods = None): """ - Provides a mock Controller instance. Its methods are mocked with the given - replacements, and calling any others will result in an exception. + Provides a mock instance of an arbitrary class. Its methods are mocked with + the given replacements, and calling any others will result in an exception.
:param class object_class: class that we're making an instance of :param dict methods: mapping of method names to their mocked implementation
tor-commits@lists.torproject.org