Message180856
I'm noticing that with multiple ANY keyword arguments, the order in the result tuple is undefined. So perhaps ANY could be instantiable in those cases where disambiguation is required:
foo, bar = my_mock.assert_called_with(1, foo=ANY(0), bar=ANY(1))
self.assertIsInstance(bar, someobj)
self.assertIsInstance(foo, someotherobj) |
|
Date |
User |
Action |
Args |
2013-01-28 14:03:14 | pitrou | set | recipients:
+ pitrou, michael.foord |
2013-01-28 14:03:14 | pitrou | set | messageid: <1359381794.24.0.35466581477.issue17063@psf.upfronthosting.co.za> |
2013-01-28 14:03:14 | pitrou | link | issue17063 messages |
2013-01-28 14:03:14 | pitrou | create | |
|