"""
Tests for standalone function `{{ items[0].qual_name }}`
Generated by auto-pytester — DO NOT EDIT MANUALLY.
"""

import pytest

from {{ items[0].module }} import {{ items[0].qual_name }}


{% for item in items -%}
def test_{{ item.qual_name }}_{{ loop.index0 }}():
    {% if item.examples.doc -%}
    """
    {{ item.examples.doc }}
    """
    {% endif -%}
    {% if item.examples.expect is string and item.examples.expect.startswith('Exception') -%}
    with pytest.raises({{ item.examples.expect.split('(')[0] }}):
        {{ items[0].qual_name }}(**{{ item.examples.input }})
    {%- else -%}
    result = {{ items[0].qual_name }}(**{{ item.examples.input }})
    assert result == {{ item.examples.expect }}
    {% endif %}
{% endfor %}