def test_exact_fields(self):
        form = EventSubmitForm()
        fields_left = list(form.fields.keys())
        fields_right = [
            'url', 'contact_name', 'contact_email',
            'self_organized', 'notes', 'captcha',
        ]
        self.assertEqual(fields_left, fields_right)
Test if the form shows correct fields.
dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event_submissions.py/TestEventSubmitForm.test_exact_fields