Completed tutorial part VII - Unit testing

http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-vii-uni
t-testing