Message181895
I still don't particularly like the idea of the assert_* methods returning something.
If the call args tuples had args and kwargs attributes, for which there are outstanding feature requests, then you could simply do:
my_mock(1, someobj(), bar=someotherobj())
foo = my_mock.call_args.args[1]
bar = my_mock.call_args.kwargs['bar']
By avoiding the extra step of tuple unpacking this is still nice and readable (IMO). |
|
Date |
User |
Action |
Args |
2013-02-11 14:03:01 | michael.foord | set | recipients:
+ michael.foord, pitrou, ezio.melotti |
2013-02-11 14:03:01 | michael.foord | set | messageid: <1360591381.45.0.220577890028.issue17063@psf.upfronthosting.co.za> |
2013-02-11 14:03:01 | michael.foord | link | issue17063 messages |
2013-02-11 14:03:01 | michael.foord | create | |
|