I came across this while doing unittest, I am curious to know what is the difference between the below two ?
self.monkeyPatch(module, 'myFunc', lambda n: someObject)
and
mox.StubOutWithMock(module, 'myFunc')
module.myFunc(n).AndReturn(someObject)
San