'By default, the test client is CSRF exempt.'

def test_csrf_exempt_by_default(self):

    user = User.objects.create_user(u'example', u'example@example.com', u'password')
    factory = APIRequestFactory()
    request = factory.post(u'/view/')
    request.user = user
    response = view(request)
    assert (response.status_code == 200)
