def test_method_can_be_get(self): form = Form('x', method='get') self.assertEquals('<form action="x" method="get"></form>', form.as_html())
def test_action_is_mandatory_and_default_method_is_post(self): form = Form('x') self.assertEquals('<form action="x" method="post"></form>', form.as_html())