New issue 37 by stefano....@gmail.com: Optional arguments
Related to issue 12, I want to stub out a function with optional arguments.
I can't know in advance whether the optional arguments will be provided or
IgnoreArg() is no help with missing arguments.
def bar(one, two=None):
The test subject may call
I'd like to be able to do
and have it match all of the above.
Comment #1 on issue 37 by steve.mi...@gmail.com: Optional arguments
Mox is intended to be used for deterministic tests.
Why can't you know in advance what your code is going to do?
OK, I only really need the first two examples above.
I have to stub out a function in another library for a test, and there are
multiple versions of this library in production. The new version passes
two=None, the other doesn't.