[issue17063] assert_called_with could be more powerful if it allowed placeholders
Antoine Pitrou
report at bugs.python.org
Mon Jan 28 15:03:14 CET 2013
Antoine Pitrou added the comment:
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)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17063>
_______________________________________
More information about the Python-bugs-list
mailing list