Message281135
On Python 3.5.2 mock.Mock() is equal to mock.ANY, but mock.MagicMock() is not.
Minimal example:
In Python 3.5.2:
>>> from unittest import mock
>>> mock.Mock() == mock.ANY
True
>>> mock.ANY == mock.Mock()
True
>>> mock.MagicMock() == mock.ANY
False
>>> mock.ANY == mock.MagicMock()
True |
|
Date |
User |
Action |
Args |
2016-11-18 16:07:14 | rafael.fonseca | set | recipients:
+ rafael.fonseca |
2016-11-18 16:07:14 | rafael.fonseca | set | messageid: <1479485234.58.0.222215885157.issue28735@psf.upfronthosting.co.za> |
2016-11-18 16:07:14 | rafael.fonseca | link | issue28735 messages |
2016-11-18 16:07:14 | rafael.fonseca | create | |
|