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