Python mock: mock objects: Revision history

From wikinotes

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

10 August 2019

  • curprev 03:5603:56, 10 August 2019Will talk contribs 162 bytes +162 Created page with "<source lang="python"> mock = mock.Mock() mock.a() >>> <Mock id='1234567'> mock.a >>> <Mock id='7654321'> mock.a.return_value = 'hi' mock.a() >>> 'hi' </source>"