Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic

NMZivkovic/mock2.py

Created Mar 9, 2019
Embed
What would you like to do?
def test_fields(self):
m = mock.Mock()
m.rubiks = 'code'
self.assertEqual(m.rubiks, 'code')
m.configure_mock(tdd='rulez')
self.assertEqual(m.tdd, 'rulez')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment