This commit fixes all warnings created by flake8 by removing unused imports and variable assignments. Some wrongly indented lines are now indented correctly.
This commit adds a test class to test the CreateHostingDomain view in domains.views.