finished view.py tests