'When a user logs in a second time, second login wins the session.
https://bugzil.la/1055870'

def test_pre_social_login_overwrites_session_var(self):

    request = self.rf.get('/')
    session = self.client.session
    session['sociallogin_provider'] = 'alternate'
    session.save()
    request.session = session
    account = SocialAccount.objects.get(user__username='testuser')
    assert (account.provider == 'github')
    sociallogin = SocialLogin(account=account)
    self.adapter.pre_social_login(request, sociallogin)
    eq_(account.provider, request.session['sociallogin_provider'], 'receiver    should    have    over-written    sociallogin_provider    session    variable')
