The return value of MagicMock.__iter__ has to be an iterator, and it will be
consumed when the mock is iterated over (so it can only be used once). It would
be better to be able to set an iterable as well.
Original issue reported on code.google.com by fuzzyman on 12 Feb 2012 at 4:58
Original issue reported on code.google.com by
fuzzyman
on 12 Feb 2012 at 4:58