Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic

NMZivkovic/mock6.py

Created Mar 9, 2019
Embed
What would you like to do?
def test_verify_called(self):
m = mock.Mock()
m.called_function.return_value = 11
m.called_function()
m.called_function.assert_called()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment