'A logged in user is kept logged in even if the REMOTE_USER header
disappears during the same browser session.'

def test_header_disappears(self):

    User.objects.create(username='knownuser')
    response = self.client.get('/remote_user/', **{self.header: self.known_user})
    self.assertEqual(response.context['user'].username, 'knownuser')
    response = self.client.get('/remote_user/')
    self.assertFalse(response.context['user'].is_anonymous)
    self.assertEqual(response.context['user'].username, 'knownuser')
