Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIX: Chained methods using mox should return the next mock object in …

…the chain
  • Loading branch information...
commit 0101ecf866161784783fc387d4fef454186e2c88 1 parent fe036ae
lekv lekv authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/comparison.rst
4 docs/comparison.rst
View
@@ -482,9 +482,9 @@ Mock chained methods
>>> my_mock = mox.MockObject(some_object)
>>> my_mock2 = mox.MockAnything()
>>> my_mock3 = mox.MockAnything()
- >>> my_mock.method1().AndReturn(my_mock) #doctest: +SKIP
+ >>> my_mock.method1().AndReturn(my_mock2) #doctest: +SKIP
<MockAnything instance>
- >>> my_mock2.method2().AndReturn(my_mock2)
+ >>> my_mock2.method2().AndReturn(my_mock3)
<MockAnything instance>
>>> my_mock3.method3(arg1, arg2).AndReturn('some_value')
'some_value'
Please sign in to comment.
Something went wrong with that request. Please try again.