This code came into existance when reading the superb book 'Test-Driven Development with Python' by Harry Percival