'Request a view with string data via request method PATCH'

def test_patch(self):

    data = u'{"test":    "json"}'
    response = self.client.patch(u'/test_client_regress/request_methods/', data=data, content_type=u'application/json')
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response.content, 'request    method:    PATCH')
