Move tests related to views files into views/tests.
Remove unused methods.
pep8 cleanup
Remove unused imports.
Merge pull request #2466 from edx/christina/move-tests

Move tests related to views files into views/tests.