Coloured output while doing TDD with Django and Fabric

Note, this article was published over 3
years ago and hence the content may be stale. Consume with a pinch
of salt.

I'm a big fan of using PHPUnit with console colours turned on (using the
--colors option). Eg:

It helps gets into the natural "red, green, refactor" rhythm.

I'm currently totally immersed in Django, and greatly miss the lack of colour
support within the "test" management command. A simple workaround for this is
to use Fabric with a few modified color commands. Your fabric file should
include the following: