[issue20963] side_effects swapped in Mock example

2014-03-17 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyth

[issue20963] side_effects swapped in Mock example

2014-03-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset e725de5a2760 by Éric Araujo in branch '3.4': Fix typo in example (#20963) http://hg.python.org/cpython/rev/e725de5a2760 -- nosy: +python-dev ___ Python tracker ___

[issue20963] side_effects swapped in Mock example

2014-03-17 Thread Éric Araujo
Éric Araujo added the comment: Thanks, will fix. -- assignee: docs@python -> eric.araujo nosy: +eric.araujo ___ Python tracker ___ ___

[issue20963] side_effects swapped in Mock example

2014-03-17 Thread chris-buccella
New submission from chris-buccella: http://docs.python.org/3.4/library/unittest.mock-examples.html Section 26.5.3.9. Mocking a dictionary with MagicMock In the Note area: >>> mock.__setitem__ = Mock(side_effect=getitem) >>> mock.__getitem__ = Mock(side_effect=setitem) I think these are swapp