# Path: bulma/tests/utils.py
# def render_template(text, context=None):
#     """
#     Render template from string
#     """
#     template = engines["django"].from_string(text)
#     if not context:
#         context = {}
#     return template.render(context)


from bulma.tests.forms import FormExample
from bulma.tests.utils import render_template


def test_bulma_base_template():
    output = render_template(
        """
        {% extends 'bulma/base.html' %}
        {% block content %}
            test_bulma_content
        {% endblock content %}
        """
    )

    assert "test_bulma_content" in output, "Content is in template"


def test_style_css_is_in_template():
    output = render_template(
        """
        {% extends 'bulma/base.html' %}
        """
    )
    assert '<link rel="stylesheet" href="/static/bulma/css/style.min.css">' in output


def test_bulma_form_tag():

# Path: bulma/tests/utils.py
# def render_template(text, context=None):
#     """
#     Render template from string
#     """
#     template = engines["django"].from_string(text)
#     if not context:
#         context = {}
#     return template.render(context)


# Path: bulma/tests/test_templates.py
from bulma.tests.forms import FormExample
from bulma.tests.utils import render_template



def test_bulma_base_template():
    output = render_template(
        """
        {% extends 'bulma/base.html' %}
        {% block content %}
            test_bulma_content
        {% endblock content %}
        """
    )

    assert "test_bulma_content" in output, "Content is in template"


def test_style_css_is_in_template():
    output = render_template(
        """
        {% extends 'bulma/base.html' %}
        """
    )
    assert '<link rel="stylesheet" href="/static/bulma/css/style.min.css">' in output


def test_bulma_form_tag():

    output = render_template(