def test_noFormTypeCancel(self):
        element = domish.Element((None, 'test'))
        cancelledForm = data_form.Form('cancel')
        element.addChild(cancelledForm.toElement())
        form = data_form.findForm(element, 'myns')
        self.assertEqual('cancel', form.formType)
Cancelled forms don't have a FORM_TYPE field, the first is returned.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_data_form.py/FindFormTest.test_noFormTypeCancel