ppperry added the comment: You can already do this, although it it somewhat of a hack:
>>> assert_called_once=Mock.assert_called_once # This will be an AttributeError >>> assert_called_once_with=Mock.assert_called_once_with >>> example = Mock() >>> assert_caled_once_with(example, ...) # A NameError >>> assert_called_once_with(example, ...) # Great success! ---------- nosy: +ppperry _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30949> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com