import logging

import pytest

from heptet_app.form import Form

logger = logging.getLogger(__name__)


def test_form_1(root_namespace_store):
    f = Form('test', root_namespace_store, None, True, {})
    form_html = f.as_html()
    logger.critical(form_html)
    #print(f.mock_calls)
    #assert 0


def test_form_2(root_namespace_store):
    with pytest.raises(TypeError):
        f = Form()
        form_html = f.as_html()
