Testing site deployment with code from book "Test-Driven Development with Python"