I have a mock that is using assert_called_with() and mock.ANY thus:<br><br><div style="margin-left:40px">m = mock.Mock()<br>do_stuff(m)<br>m.assert_called_with(now=mock.ANY, foo=&#39;bar&#39;)<br><br></div>Unfortunately, this results in:<br>

<br><div style="margin-left:40px">AssertionError: Expected call: mock(now=&lt;ANY&gt;, foo=&#39;bar&#39;)<br>Actual call: mock(now=datetime.datetime(2012, 1, 9, 22, 36, 41, 264838), foo=&#39;bar&#39;)<br></div><br>I could have sworn that ANY used to work perfectly fine when used in this way. Is this a datetime thing or...?<br>

<br>Using mock==dev<br>