def METHOD_NAME(self):
    """
    Check that assigning the setting to a context variable with
    {% get_settings as wagtail_settings %} works.
    """
    request = self.get_request()
    context = Context({"request": request})
    template = Template(
        "{% load wagtailsettings_tags %}"
        "{% get_settings as wagtail_settings %}"
        "{{ wagtail_settings.tests.testgenericsetting.title }}"
    )
    self.assertEqual(template.render(context), self.default_settings.title)
    # Also check that the default 'settings' variable hasn't been set
    template = Template(
        "{% load wagtailsettings_tags %}"
        "{% get_settings as wagtail_settings %}"
        "{{ settings.tests.testgenericsetting.title }}"
    )
    self.assertEqual(template.render(context), "")