Cleaned tests file to correct all pyflakes and pep8 errors

I guess we could also import this `from mysite.base.view_helpers`?