title: How to write custom test client of django?
body: <p>I read the documents about objects but cannot really figure out how to make custom class of test client. There is a document that describes <a href="https://docs.djangoproject.com/en/1.5/topics/testing/overview/#customizing-the-test-client" rel="nofollow">how to make custom test client.</a> but cannot make it. I want to make the client to enforce csrf check. How can I make it? Thanks in advance.</p>