what is difference while doing monkeyPatch and StubOutwithMock?

27 views
Skip to first unread message

Sanjeev Kumar

unread,
Dec 19, 2014, 11:53:11 PM12/19/14
to mox-d...@googlegroups.com, j...@pobox.com



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
Reply all
Reply to author
Forward
0 new messages