def METHOD_NAME(self):
    s = SocialApp.objects.create(
        name="foo",
        client_id="ID_123456789",
        secret="secret_987654321",
        provider=GitHubProvider.id
    )
    s.save()
    site = Site.objects.first()
    s.sites.add(site)
    s.save()
    factory = RequestFactory()
    context = {"request": factory.get("/login")}
    social_providers = socialaccount_providers(context)
    self.assertEqual(1, len(social_providers.keys()))
    self.assertEqual(GitHubProvider, list(social_providers)[0].__class__)