Closed GoogleCodeExporter closed 8 years ago
"any" is in matchers package. So if you need to use both builtin any and
mockitos one you can import matchers package:
from mockito import macthers
# use matchers.any()
Original comment by serhiy%oplakanets.com@gtempaccount.com
on 1 Sep 2010 at 9:05
Couldn't figure out a better name for _any_, so I think using static import:
from mockito import matchers
and using _mathers.any_ instead of _any_ is preferable way. You can, of course,
renamed imported object:
from mockito.matchers import any as any_
and use _any__ instead of _any_ which will also work.
Which really should be neccessary only when you need to use both python's and
mockito's any
Original comment by serhiy%oplakanets.com@gtempaccount.com
on 29 Sep 2010 at 7:11
Original issue reported on code.google.com by
christop...@gmail.com
on 5 Aug 2010 at 9:19