import pytest

from .utils import render_template


@pytest.mark.django_db
def test_with_html_simple(html_content):
    assert "<strong>&amp;</strong>" == render_template(
        "{% tinycontent_simple 'html' %}"
    )


@pytest.mark.django_db
def test_with_html_complex(html_content):
    assert "<strong>&amp;</strong>" == render_template(
        "{% tinycontent 'html' %}"
        "Not found."
        "{% endtinycontent %}"
    )

1534c56df94917193bd9af0fd250402b44eb7e7c
<mask token>

<mask token>


@pytest.mark.django_db
def test_with_html_complex(html_content):
    assert '<strong>&amp;</strong>' == render_template(
        "{% tinycontent 'html' %}Not found.{% endtinycontent %}")

<mask token>


@pytest.mark.django_db
def test_with_html_simple(html_content):
    assert '<strong>&amp;</strong>' == render_template(
        "{% tinycontent_simple 'html' %}")


@pytest.mark.django_db
def test_with_html_complex(html_content):
    assert '<strong>&amp;</strong>' == render_template(
        "{% tinycontent 'html' %}Not found.{% endtinycontent %}")

import pytest
from .utils import render_template


@pytest.mark.django_db
def test_with_html_simple(html_content):
    assert '<strong>&amp;</strong>' == render_template(
        "{% tinycontent_simple 'html' %}")


@pytest.mark.django_db
def test_with_html_complex(html_content):
    assert '<strong>&amp;</strong>' == render_template(
        "{% tinycontent 'html' %}Not found.{% endtinycontent %}")

import pytest

from .utils import render_template


@pytest.mark.django_db
def test_with_html_simple(html_content):
    assert "<strong>&amp;</strong>" == render_template(
        "{% tinycontent_simple 'html' %}"
    )


@pytest.mark.django_db
def test_with_html_complex(html_content):
    assert "<strong>&amp;</strong>" == render_template(
        "{% tinycontent 'html' %}"
        "Not found."
        "{% endtinycontent %}"
    )
