[Tutor] Mocking with "mock" in unit testing

Alan Gauld alan.gauld at btinternet.com
Sat Jan 18 02:20:35 CET 2014


On 18/01/14 00:49, Steven D'Aprano wrote:

> which got mangled into plain text as:
>
>    import mockIMPORT unittestIMPORT pinger
>
> (highlighting the latter two imports for emphasis), and not what my
> brain was telling me, which was "import mock unittest pinger".

If its any consolation I did exactly the same.

Even after the correction came out and I went back to the
original I still missed the import.

It was only when the raw HTML came through I saw it...

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list