GUI-1337: Replace deprecated WTForms validator marker

Add unit tests and clean up PEP8 violations in BaseFormTestCase

Fixes https://eucalyptus.atlassian.net/browse/GUI-1337
Would it be acceptable to have an empty csrf token? Shouldn't we fail if the request isn't defined?