Closed GoogleCodeExporter closed 9 years ago
See issue 8. I could add this to method_calls.
The trouble with making the traversal into a single string is that not all
objects
have a nice repr and that reproducing the exact order of keyword argument calls
(collected as a dictionary) is impossible.
Original comment by fuzzyman
on 9 Dec 2008 at 12:27
One way to solve the "order of keyword argument calls" problems would be to
always sort keywords before printing them - that way they always appear in a
guaranteed order.
Original comment by fuzzyman
on 11 Jun 2010 at 12:00
I think the right way of doing this is a combination of issue 79 (using call
objects) and issue 82 (tracking all calls). This will allow you to do:
{{{
mock.foo().bar(1, 2)
assert mock.mock_callls == [call.foo().bar(1, 2)]
}}}
Aiming for this to go in 0.8.0.
Original comment by fuzzyman
on 29 Mar 2011 at 5:28
Original issue reported on code.google.com by
cwith...@gmail.com
on 9 Dec 2008 at 12:54