[Tutor] Mocking with "mock" in unit testing
eryksun
eryksun at gmail.com
Fri Jan 17 22:02:36 CET 2014
On Fri, Jan 17, 2014 at 10:32 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> import mockimport
> unittestimport
> pinger
>
>
> would not be "fine".
Screenshot:
http://i.imgur.com/wSihI1X.png
The following is in a <pre> tag, so the whitespace is rendered literally:
<span style=S0>import</span> mock
<span style=S0>import</span> <span style=S1>unittest</span>
<span style=S0>import</span> pinger
<span style=S0>class</span>
---
Replace S0 and S1 as follows:
S0 = "color:rgb(255,119,0);font-weight:bold"
S1 = "color:rgb(220,20,60)"
There's a non-breaking space on the otherwise empty line between
"pinger" and "class".
More information about the Tutor
mailing list