'A flatpage served by the middleware can require authentication'

@skipIfCustomUser
def test_fallback_authenticated_flatpage(self):

    response = self.client.get('/sekrit/')
    self.assertRedirects(response, '/accounts/login/?next=/sekrit/')
    User.objects.create_user('testuser', 'test@example.com', 's3krit')
    self.client.login(username='testuser', password='s3krit')
    response = self.client.get('/sekrit/')
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, "<p>Isn't    it    sekrit!</p>")
