Closed GoogleCodeExporter closed 9 years ago
The issue here is equality vs identity. In your example, the two mocks are
equal (see __eq__ for definition) but they are not identical. If you are
looking for identity, you can use the Is() comparator.
c.do_smth(Is(d_mock1))
m.ReplayAll()
c.do_smth(d_mock2)
m.VerifyAll()
Original comment by steve.mi...@gmail.com
on 2 Mar 2011 at 9:50
Alright, thank you for the hint about the Is() comparator. I didn't know it
existed, because it's only available in the trunk, but not in the latests 0.5.3
release.
Original comment by f.scholl...@web.de
on 3 Mar 2011 at 7:33
Original issue reported on code.google.com by
f.scholl...@web.de
on 2 Mar 2011 at 10:41Attachments: