There is an example of using MagicMock to mock a dictionary. It's still a good
example of using the MagicMock magic method support, but it should at least
mention patch.dict for working with dictionaries.
Also don't forget that create_autospec problem with instance attributes not
being available can be ameliorated by attaching mocks as attributes to the
created mocks (and will still be tracked in mock_calls).
Original issue reported on code.google.com by fuzzyman on 15 May 2012 at 3:02
Original issue reported on code.google.com by
fuzzyman
on 15 May 2012 at 3:02