Inspecting calls on Python mock objects
Sometimes, you want to assert that an object was called with some arguments, but the exact value for an argument is computed by some external logic that you do not want your test to depend on. Let's say it is generated by a template, and in this particular case ...
more ...