[twill] 'require' extension module; post-load hooks.

Titus Brown titus at caltech.edu
Wed Mar 15 17:38:52 PST 2006

Hi all,

inspired by some comments that Ian Bicking made on my test-automation


I added in a post-load hook mechanism that runs each of a list of
callables after each page load.

To see it in action, you can try out the new 'require' extension module,
documented here:


This lets you assert success and/or link validity on each page after
load, e.g.

>> extend_with require
>> require success
>> require links_ok
>> go http://www.idyll.org/

should succeed, while

>> go http://www.idyll.org/no-such-page

will fail because the code returned is 404.

Available in the usual places.


More information about the twill mailing list