def METHOD_NAME(self):
    site_name = "testserver"
    if allauth.app_settings.SITES_ENABLED:
        from django.contrib.sites.models import Site
        site = Site.objects.get_current()
        site.name = site_name = '<enc&"test>'
        site.save()
    u = get_user_model().objects.create(username="test", email="user@example.com")
    request = RequestFactory().get("/")
    EmailAddress.objects.add_email(request, u, u.email, confirm=True)
    self.assertTrue(mail.outbox[0].subject[1:].startswith(site_name))