Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic

NMZivkovic/mock3.py

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