def test_post_fallback_flatpage(self):
        response = self.client.post('/flatpage/')
        self.assertEqual(response.status_code, 403)
POSTing to a flatpage served by the middleware will raise a CSRF error if no token is provided (Refs #14156)
dataset/ETHPy150Open django/django/tests/flatpages_tests/test_csrf.py/FlatpageCSRFTests.test_post_fallback_flatpage