Refactored the /view/(.*) TestCase.
Moved model from application.py to model.py