title: How to set the _dont_enforce_csrf_checks using the django test client
body: <p>I'm trying to enforce the csrf checks during a higher level integration test using the django test client but I'm unsure how to flip this bit manually (before the client is invoked)</p>
  
  <p>Here is what I have currently that is failing (I get a 201 instead of a 403 below)</p>
  
  <pre><code>def test_should_get_403_when_csrf_enforced(self):
      self.client.enforce_csrf_checks=False
      response = self.client.post(url, {'name': 'foobar'})
      self.assertEqual(403, response.status_code)
  </code></pre>