In the documentation here:
http://www.voidspace.org.uk/python/mock/magicmock.html#mock.NonCallableMagicMock
The default return value for __len__ for a MagicMock is stated incorrectly as
1, it is actually 0, as is confirmed in the code example that immediately
follows in the documentation.
__contains__ : False
>>__len__ : 1
__iter__ : iter([])
Original issue reported on code.google.com by stca...@gmail.com on 27 Jul 2013 at 5:48
Original issue reported on code.google.com by
stca...@gmail.com
on 27 Jul 2013 at 5:48