Code for my Flask testing tutorial on the Safari Books Online Blog