def METHOD_NAME(
    self,
    web_testapp,
    riyad_user,
    session,
    admin_user,
    workspace_api_factory,
    content_api_factory,
):
    """
    Check obtain workspace contents with defaults filters
    """
    web_testapp.authorization = (
        "Basic",
        ("admin@admin.admin", "admin@admin.admin"),
    )
    workspace_api = workspace_api_factory.get()
    content_api = content_api_factory.get()
    workspace = workspace_api.create_workspace("test")
    test_html_document = content_api.create(
        content_type_slug=ContentTypeSlug.HTML_DOCUMENTS.value,
        workspace=workspace,
        label="just a content",
        do_save=True,
        do_notify=False,
    )
    # default
    transaction.commit()
    res = web_testapp.get(
        "/api/workspaces/1/html-documents/{}".format(test_html_document.content_id),
        status=200,
    )
    assert res.json_body["is_template"] is False
    res = web_testapp.get(
        "/api/users/{}/template_contents?type=html-document".format(admin_user.user_id),
        status=200,
    )
    assert len(res.json_body) == 0
    res = web_testapp.get(
        "/api/users/{}/template_contents?type=html-document".format(riyad_user.user_id),
        status=200,
    )
    assert len(res.json_body) == 0
    # set
    with new_revision(session=session, tm=transaction.manager, content=test_html_document):
        content_api.set_template(test_html_document, is_template=True)
    content_api.save(test_html_document)
    transaction.commit()
    res = web_testapp.get(
        "/api/workspaces/1/html-documents/{}".format(test_html_document.content_id),
        status=200,
    )
    assert res.json_body["is_template"] is True
    res = web_testapp.get(
        "/api/users/{}/template_contents?type=html-document".format(admin_user.user_id),
        status=200,
    )
    assert len(res.json_body) == 1
    assert res.json_body[0]["content_id"] == 1
    res = web_testapp.get(
        "/api/users/{}/template_contents?type=html-document".format(riyad_user.user_id),
        status=200,
    )
    assert len(res.json_body) == 0
    # unset
    with new_revision(session=session, tm=transaction.manager, content=test_html_document):
        content_api.set_template(test_html_document, is_template=False)
    content_api.save(test_html_document)
    transaction.commit()
    res = web_testapp.get(
        "/api/workspaces/1/html-documents/{}".format(test_html_document.content_id),
        status=200,
    )
    assert res.json_body["is_template"] is False
    res = web_testapp.get(
        "/api/users/{}/template_contents?type=html-document".format(admin_user.user_id),
        status=200,
    )
    assert len(res.json_body) == 0
    res = web_testapp.get(
        "/api/users/{}/template_contents?type=html-document".format(riyad_user.user_id),
        status=200,
    )
    assert len(res.json_body) == 0