def METHOD_NAME(self):
    auth_models.SocialAccount.objects.create(
        provider='github', user=self.user, extra_data={
            'avatar_url': '',
            'login': NAME_MIXED,
        })
    handlers.user_logged_in_handler(request=None, user=self.user)
    assert models.ProviderNamespace.objects.filter(
        name__iexact=NAME_MIXED).count() == 1
    assert models.Namespace.objects.filter(
        name__iexact=NAME_MIXED).count() == 1