def test_overrideMethod(self):
        m = message.Message.fromPostArgs(self.postargs)

        tag_attrs = dict(self.form_tag_attrs)
        tag_attrs['method'] = 'GET'

        html = m.toFormMarkup(self.action_url, self.form_tag_attrs,
                              self.submit_text)
        self._checkForm(html, m, self.action_url,
                        self.form_tag_attrs, self.submit_text)
Be sure that caller cannot change form method to GET.
dataset/ETHPy150Open adieu/python-openid/openid/test/test_message.py/MessageTest.test_overrideMethod