Doctests vs unit tests

OK, I might have to eat my words here. Doctests are quite cool as small dabs here and there, but the module doesn’t have the flexibility of unit tests. It’s much harder to chunk the tests and refer to them individually. This is hugely exacerbated by the whole Django model magic madness. Hopefully most of the gymnastics I’m doing in testing at the moment will become redundant when magic-removal hits the shelves. In the mean time I’m considering moving all my tests back to units, which will be a pain because of the whole from django.models... boilerplate that’s required everywhere.

Also, having the tests in with code is quite cool in some ways, but it does make getting around the files tricky when the blocks get large. So much for literate programming.