Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
minor doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timbertson committed Jun 24, 2012
1 parent a708e31 commit daf8f23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mocktest/mocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,11 @@ def with_methods(self, **methods):
"""
Set child methods via kwargs, e.g.:
>>> mock("name").with_children(x=1, y=mock('child y'))
>>> mock("name").with_methods(x=1, y=mock('child y'))
>>> obj.x()
1
>>> obj.y()
'child y'
"""
return assign_kwargs_methods(self, **methods)

Expand Down

0 comments on commit daf8f23

Please sign in to comment.