[issue25597] unittest.mock does not wrap dict objects correctly

2015-12-22 Thread Joseph Gordon
Changes by Joseph Gordon : -- nosy: +josephgordon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25597] unittest.mock does not wrap dict objects correctly

2015-11-10 Thread R. David Murray
R. David Murray added the comment: Looking at the source, it's not clear that wraps is supported for __ methods, despite what the documentation implies. That is, MagicProxy doesn't seem to look at the wraps information. I suspect it is doable, but it may be an enhancement request rather than

[issue25597] unittest.mock does not wrap dict objects correctly

2015-11-10 Thread Darragh Bailey
New submission from Darragh Bailey: Both unittest.mock and the backported release for earlier pythons don't appear to support mocking of dictionary objects. Specifically I'm expecting that any of the methods used to test for membership, or get items from a mock object wrapping a dictionary sho