expected inclusionnoparams doc return result inclusionnoparams expected result inclusionnoparams anything expected inclusionnoparams dict register inclusiontagengine gettemplateinclusion html def inclusionnoparamsfromtemplate expected inclusiononeparam doc return result inclusiononeparam expected result s arg inclusiononeparam anything expected inclusiononeparam dict register inclusiontagengine gettemplateinclusion html def inclusiononeparamfromtemplatearg expected inclusionexplicitnocontext doc return result inclusionexplicitnocontext expected result s arg inclusionexplicitnocontext anything expected inclusionexplicitnocontext dict register inclusiontagengine gettemplateinclusion html takescontextfalse def inclusionexplicitnocontextfromtemplatearg expected inclusionnoparamswithcontext doc return result inclusionnoparamswithcontext expected result context value s contextvalue inclusionnoparamswithcontext anything expected inclusionnoparamswithcontext dict register inclusiontagengine gettemplateinclusion html takescontexttrue def inclusionnoparamswithcontextfromtemplatecontext expected inclusionparamsandcontext doc return result inclusionparamsandcontext expected result context value s s contextvalue arg inclusionparamsandcontext anything expected inclusionparamsandcontext dict register inclusiontagengine gettemplateinclusion html takescontexttrue def inclusionparamsandcontextfromtemplatecontext arg expected inclusiontwoparams doc return result inclusiontwoparams expected result s s one two inclusiontwoparams anything expected inclusiontwoparams dict register inclusiontagengine gettemplateinclusion html def inclusiontwoparamsfromtemplateone two expected inclusiononedefault doc return result inclusiononedefault expected result s s one two inclusiononedefault anything expected inclusiononedefault dict register inclusiontaginclusion html def inclusionkeywordonlydefault kwarg42 return result inclusionkeywordonlydefault expected result s kwarg register inclusiontagengine gettemplateinclusion html def inclusiononedefaultfromtemplateone twohi expected inclusionunlimitedargs doc return result inclusionunlimitedargs expected result s joinstrarg for arg in one two args inclusionunlimitedargs anything expected inclusionunlimitedargs dict register inclusiontagengine gettemplateinclusion html def inclusionunlimitedargsfromtemplateone twohi args expected inclusiononlyunlimitedargs doc return result inclusiononlyunlimitedargs expected result s joinstrarg for arg in args inclusiononlyunlimitedargs anything expected inclusiononlyunlimitedargs dict register inclusiontagengine gettemplateinclusion html def inclusiononlyunlimitedargsfromtemplateargs expected inclusiontagusel10n doc return inclusiontagusel10n anything expected inclusiontagusel10n dict register inclusiontaginclusion html def inclusionunlimitedargskwargsone twohi args kwargs expected inclusiontagwithoutcontextparameter doc return inclusiontagwithoutcontextparameter anything expected inclusiontagwithoutcontextparameter dict register inclusiontaginclusion html takescontexttrue def inclusiontagtakescontextwithoutparams expected inclusion_no_params __doc__ expected inclusion_no_params_from_template __doc__ expected inclusion_one_param __doc__ expected inclusion_one_param_from_template __doc__ expected inclusion_explicit_no_context __doc__ expected inclusion_explicit_no_context_from_template __doc__ expected inclusion_no_params_with_context __doc__ expected inclusion_no_params_with_context_from_template __doc__ expected inclusion_params_and_context __doc__ expected inclusion_params_and_context_from_template __doc__ expected inclusion_two_params __doc__ expected inclusion_two_params_from_template __doc__ expected inclusion_one_default __doc__ expected inclusion_one_default_from_template __doc__ expected inclusion_unlimited_args __doc__ expected inclusion_unlimited_args_from_template __doc__ expected inclusion_only_unlimited_args __doc__ expected inclusion_only_unlimited_args_from_template __doc__ expected inclusion_tag_use_l10n __doc__ expected inclusion_unlimited_args_kwargs __doc__ expected inclusion_tag_without_context_parameter __doc__ expected inclusion_tag_takes_context_without_params __doc__
from django.template import Engine, Library

engine = Engine(app_dirs=True)
register = Library()


@register.inclusion_tag("inclusion.html")
def inclusion_no_params():
    
    return {"result": "inclusion_no_params - Expected result"}


inclusion_no_params.anything = "Expected inclusion_no_params __dict__"


@register.inclusion_tag(engine.get_template("inclusion.html"))
def inclusion_no_params_from_template():
    
    return {"result": "inclusion_no_params_from_template - Expected result"}


inclusion_no_params_from_template.anything = (
    "Expected inclusion_no_params_from_template __dict__"
)


@register.inclusion_tag("inclusion.html")
def inclusion_one_param(arg):
    
    return {"result": "inclusion_one_param - Expected result: %s" % arg}


inclusion_one_param.anything = "Expected inclusion_one_param __dict__"


@register.inclusion_tag(engine.get_template("inclusion.html"))
def inclusion_one_param_from_template(arg):
    
    return {"result": "inclusion_one_param_from_template - Expected result: %s" % arg}


inclusion_one_param_from_template.anything = (
    "Expected inclusion_one_param_from_template __dict__"
)


@register.inclusion_tag("inclusion.html", takes_context=False)
def inclusion_explicit_no_context(arg):
    
    return {"result": "inclusion_explicit_no_context - Expected result: %s" % arg}


inclusion_explicit_no_context.anything = (
    "Expected inclusion_explicit_no_context __dict__"
)


@register.inclusion_tag(engine.get_template("inclusion.html"), takes_context=False)
def inclusion_explicit_no_context_from_template(arg):
    
    return {
        "result": "inclusion_explicit_no_context_from_template - Expected result: %s"
        % arg
    }


inclusion_explicit_no_context_from_template.anything = (
    "Expected inclusion_explicit_no_context_from_template __dict__"
)


@register.inclusion_tag("inclusion.html", takes_context=True)
def inclusion_no_params_with_context(context):
    
    return {
        "result": (
            "inclusion_no_params_with_context - Expected result (context value: %s)"
        )
        % context["value"]
    }


inclusion_no_params_with_context.anything = (
    "Expected inclusion_no_params_with_context __dict__"
)


@register.inclusion_tag(engine.get_template("inclusion.html"), takes_context=True)
def inclusion_no_params_with_context_from_template(context):
    
    return {
        "result": (
            "inclusion_no_params_with_context_from_template - Expected result (context "
            "value: %s)"
        )
        % context["value"]
    }


inclusion_no_params_with_context_from_template.anything = (
    "Expected inclusion_no_params_with_context_from_template __dict__"
)


@register.inclusion_tag("inclusion.html", takes_context=True)
def inclusion_params_and_context(context, arg):
    
    return {
        "result": (
            "inclusion_params_and_context - Expected result (context value: %s): %s"
        )
        % (context["value"], arg)
    }


inclusion_params_and_context.anything = "Expected inclusion_params_and_context __dict__"


@register.inclusion_tag(engine.get_template("inclusion.html"), takes_context=True)
def inclusion_params_and_context_from_template(context, arg):
    
    return {
        "result": (
            "inclusion_params_and_context_from_template - Expected result "
            "(context value: %s): %s" % (context["value"], arg)
        )
    }


inclusion_params_and_context_from_template.anything = (
    "Expected inclusion_params_and_context_from_template __dict__"
)


@register.inclusion_tag("inclusion.html")
def inclusion_two_params(one, two):
    
    return {"result": "inclusion_two_params - Expected result: %s, %s" % (one, two)}


inclusion_two_params.anything = "Expected inclusion_two_params __dict__"


@register.inclusion_tag(engine.get_template("inclusion.html"))
def inclusion_two_params_from_template(one, two):
    
    return {
        "result": "inclusion_two_params_from_template - Expected result: %s, %s"
        % (one, two)
    }


inclusion_two_params_from_template.anything = (
    "Expected inclusion_two_params_from_template __dict__"
)


@register.inclusion_tag("inclusion.html")
def inclusion_one_default(one, two="hi"):
    
    return {"result": "inclusion_one_default - Expected result: %s, %s" % (one, two)}


inclusion_one_default.anything = "Expected inclusion_one_default __dict__"


@register.inclusion_tag("inclusion.html")
def inclusion_keyword_only_default(*, kwarg=42):
    return {
        "result": ("inclusion_keyword_only_default - Expected result: %s" % kwarg),
    }


@register.inclusion_tag(engine.get_template("inclusion.html"))
def inclusion_one_default_from_template(one, two="hi"):
    
    return {
        "result": "inclusion_one_default_from_template - Expected result: %s, %s"
        % (one, two)
    }


inclusion_one_default_from_template.anything = (
    "Expected inclusion_one_default_from_template __dict__"
)


@register.inclusion_tag("inclusion.html")
def inclusion_unlimited_args(one, two="hi", *args):
    
    return {
        "result": (
            "inclusion_unlimited_args - Expected result: %s"
            % (", ".join(str(arg) for arg in [one, two, *args]))
        )
    }


inclusion_unlimited_args.anything = "Expected inclusion_unlimited_args __dict__"


@register.inclusion_tag(engine.get_template("inclusion.html"))
def inclusion_unlimited_args_from_template(one, two="hi", *args):
    
    return {
        "result": (
            "inclusion_unlimited_args_from_template - Expected result: %s"
            % (", ".join(str(arg) for arg in [one, two, *args]))
        )
    }


inclusion_unlimited_args_from_template.anything = (
    "Expected inclusion_unlimited_args_from_template __dict__"
)


@register.inclusion_tag("inclusion.html")
def inclusion_only_unlimited_args(*args):
    
    return {
        "result": "inclusion_only_unlimited_args - Expected result: %s"
        % (", ".join(str(arg) for arg in args))
    }


inclusion_only_unlimited_args.anything = (
    "Expected inclusion_only_unlimited_args __dict__"
)


@register.inclusion_tag(engine.get_template("inclusion.html"))
def inclusion_only_unlimited_args_from_template(*args):
    
    return {
        "result": "inclusion_only_unlimited_args_from_template - Expected result: %s"
        % (", ".join(str(arg) for arg in args))
    }


inclusion_only_unlimited_args_from_template.anything = (
    "Expected inclusion_only_unlimited_args_from_template __dict__"
)


@register.inclusion_tag("test_incl_tag_use_l10n.html", takes_context=True)
def inclusion_tag_use_l10n(context):
    
    return {}


inclusion_tag_use_l10n.anything = "Expected inclusion_tag_use_l10n __dict__"


@register.inclusion_tag("inclusion.html")
def inclusion_unlimited_args_kwargs(one, two="hi", *args, **kwargs):
    
    return {
        "result": "inclusion_unlimited_args_kwargs - Expected result: %s / %s"
        % (
            ", ".join(str(arg) for arg in [one, two, *args]),
            ", ".join("%s=%s" % (k, v) for (k, v) in kwargs.items()),
        )
    }


inclusion_unlimited_args_kwargs.anything = (
    "Expected inclusion_unlimited_args_kwargs __dict__"
)


@register.inclusion_tag("inclusion.html", takes_context=True)
def inclusion_tag_without_context_parameter(arg):
    
    return {}


inclusion_tag_without_context_parameter.anything = (
    "Expected inclusion_tag_without_context_parameter __dict__"
)


@register.inclusion_tag("inclusion.html", takes_context=True)
def inclusion_tag_takes_context_without_params():
    
    return {}


inclusion_tag_takes_context_without_params.anything = (
    "Expected inclusion_tag_takes_context_without_params __dict__"
)


@register.inclusion_tag("inclusion_extends1.html")
def inclusion_extends1():
    return {}


@register.inclusion_tag("inclusion_extends2.html")
def inclusion_extends2():
    return {}