[TIP] Dingus screencast and source code

Marius Gedminas marius at gedmin.as
Wed Apr 1 09:57:40 PDT 2009

On Tue, Mar 31, 2009 at 10:25:24PM -0400, Gary Bernhardt wrote:
> Dingus is a permissive, recording stub library that started out as an
> accidental fork of Michael Foord's mock library. It has a magical
> feature that other libraries lack: by inheriting from the right base
> class, your tests become fully isolated, with all objects other than
> the class under test being replaced by dinguses.
> The screencast [1] shows me using Dingus to TDD a small bit of code
> with fully isolated unit tests. It's 18 minutes long, so hopefully you
> won't get too bored. :)

Now I normally *hate* screencasts with a passion (most of them would be
improved by replacing them with a typed-in transcript), but this one is
simply *awesome*.

I cannot say I fell in love with Dingus (my experiments with magic mocks
ended up badly when they pretended to have special attributes that Zope 3
interprets in special ways), but I'm impressed by your workflow.

What do you use to integrate nose with vim?

> The Dingus source is at [2], and a slightly out-of-date version is
> easy_installable. You should install from from tip on bitbucket for
> now if you want to try it out. I'll try to get the next release out
> soon.

Please also blog about it, with a link to this screencast.  A wider
audience needs to see it, not just the readers of testing-in-python.

Marius Gedminas
If Linux doesn't have the solution, you have the wrong problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.idyll.org/pipermail/testing-in-python/attachments/20090401/afbfd2a3/attachment.pgp 

More information about the testing-in-python mailing list