def test_form_other_attrs(): assert mod.form(_id='foo') == '<form id="foo">'
def test_form_multipart(): assert mod.form(multipart=True) == '<form enctype="multipart/form-data">'
def test_form_action(): assert mod.form(action='/foo') == '<form action="/foo">'
def test_form_tag_faux_method(): assert '<form method="POST">' in mod.form('PUT') assert mod.HIDDEN('_method', 'PUT') in mod.form('PUT')
def test_form_tag_method(): assert mod.form('POST') == '<form method="POST">' assert mod.form('GET') == '<form method="GET">'
def test_form_tag_default(): assert mod.form() == '<form>'