This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ppperry
Recipients odd_bloke, ppperry, tribaal
Date 2017-07-17.20:29:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500323392.33.0.809737695353.issue30949@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2017-07-17 20:29:52ppperrysetrecipients: + ppperry, odd_bloke, tribaal
2017-07-17 20:29:52ppperrysetmessageid: <1500323392.33.0.809737695353.issue30949@psf.upfronthosting.co.za>
2017-07-17 20:29:52ppperrylinkissue30949 messages
2017-07-17 20:29:52ppperrycreate