[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Corrects pydocs for mocking.get_object



commit 33cd87351b3bfa945a5f741078d6795c18dd3972
Author: Sean Robinson <seankrobinson@xxxxxxxxx>
Date:   Sat Dec 22 03:27:01 2012 -0700

    Corrects pydocs for mocking.get_object
    
    Signed-off-by: Sean Robinson <seankrobinson@xxxxxxxxx>
---
 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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits