TDD for the Web, with Python, Selenium, Django, JavaScript and pals...

The book

Obviously this is my favourite option! O'Reilly are great,
they have DRM-free versions you can download in all sorts
of formats (MOBI/epub/pdf), and of course you have to pay
if you want an actual physical copy of the book.
You can also get it from
amazon.com
and
amazon.co.uk
and lots of other Amazons I'm sure, or read it online at
Safari
if you have an account there.

Getting Selenium to wait until the next page has fully loaded after you click on a link seems like it should be easy, but it's actually very hard to do reliably, but I think we may have cracked it. Read on!

I've just completed the process of upgrading the whole book to the Django 1.7 beta release. Migrations were the biggest change. They've meant a slight increase to the learning curve for chapters 5 & 6, but on the other hand I was able to drop the dedicated migrations chapter altogether!

tl;dr: I found myself going through increasing contortions trying
to TDD some JavaScript code with Ajax in. Once I started using
sinon.js, all the pain went away. Folks, don’t try to roll your
own JavaScript mocks.