[stem/master] Made additional changes regarding sphinx documentation. This completes Code Review 1.

commit 10ae1304d02c390237d865c5fc439992249bc9d0 Author: Megan <mchang01@wesleyan.edu> Date: Tue Jun 26 17:20:37 2012 -0400 Made additional changes regarding sphinx documentation. This completes Code Review 1. --- test/unit/util/proc.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/util/proc.py b/test/unit/util/proc.py index 7ea119b..2d90267 100644 --- a/test/unit/util/proc.py +++ b/test/unit/util/proc.py @@ -28,12 +28,12 @@ class TargetError(Exception): def mock_fn(arguments_returns, target=None): """ Provides a lambda function that may be used to mock another function. + + This function operates under the precondition that len(exp_args) = len(return_vals) :param dict args_rets: expected input value(s) as tuples are the key and return values are the values of the dictionary. :param function target: target function to be called if mocking doesn't cover this input - :precondition: len(exp_args) = len(return_vals) - :returns: function _mocker such that... *return_vals[i] a = exp_args[i] *target(*a) a != exp_args[i] and target != None
participants (1)
-
atagar@torproject.org