def METHOD_NAME(ext, result):
    env = Environment(
        extensions=["jinja2.ext.i18n"] + ext,
    )
    class Faketext:
        # Every method is identity
        def __getattribute__(self, _: str):
            return lambda x: x
    env.install_gettext_translations(Faketext())
    # Result is trimmed
    assert env.from_string("{% trans %}   hey   {% endtrans %}").render() == result