I got a MagickMock and I want to return side effect values each times it is called. The amount of calls is not known. The return value should between 1 and 2. I was wondering how to do this, via Lambda function?
I was trying something like this:
patched.side_effect = lambda x: (1, 2)
Any ideas?