def test_no_remote_user(self):
    '\n        Tests requests where no remote user is specified and insures that no\n        users get created.\n        '
    num_users = User.objects.count()
    response = self.client.get('/remote_user/')
    self.assertTrue(response.context['user'].is_anonymous())
    self.assertEqual(User.objects.count(), num_users)
    response = self.client.get('/remote_user/', **{self.header: None})
    self.assertTrue(response.context['user'].is_anonymous())
    self.assertEqual(User.objects.count(), num_users)
    response = self.client.get('/remote_user/', **{self.header: ''})
    self.assertTrue(response.context['user'].is_anonymous())
    self.assertEqual(User.objects.count(), num_users)
Tests requests where no remote user is specified and insures that no
users get created.
def test_no_remote_user(self):
    '\n        Tests requests where no remote user is specified and insures that no\n        users get created.\n        '
    num_users = User.objects.count()
    response = self.client.get('/remote_user/')
    self.assertTrue(response.context['user'].is_anonymous())
    self.assertEqual(User.objects.count(), num_users)
    response = self.client.get('/remote_user/', **{self.header: None})
    self.assertTrue(response.context['user'].is_anonymous())
    self.assertEqual(User.objects.count(), num_users)
    response = self.client.get('/remote_user/', **{self.header: })
    self.assertTrue(response.context['user'].is_anonymous())
    self.assertEqual(User.objects.count(), num_users)