'Setting `.force_authenticate()` forcibly authenticates each request.'

def test_force_authenticate_with_sessions(self):

    user = User.objects.create_user(u'example', u'example@example.com')
    self.client.force_authenticate(user)
    response = self.client.get(u'/session-view/')
    assert (response.data[u'active_session'] is False)
    response = self.client.get(u'/session-view/')
    assert (response.data[u'active_session'] is True)
    self.client.force_authenticate(None)
    response = self.client.get(u'/session-view/')
    assert (response.data[u'active_session'] is False)
