Closed jonathan-benn closed 6 years ago
A solution should also pass this test:
stub = sinon.stub()
assert stub() == None
assert stub('A') == None
stub.withArgs('A').onSecondCall().returns('second call!')
assert stub('A') == 'second call!'
assert stub('A') == None
assert stub() == None
I'm working on this issue next
Note that this applies to
throws
as well