'POST raw data (with a content type) to a view'

def test_raw_post(self):

    test_doc = u'<?xml    version="1.0"    encoding="utf-8"?><library><book><title>Blink</title><author>Malcolm    Gladwell</author></book></library>'
    response = self.client.post(u'/test_client/raw_post_view/', test_doc, content_type=u'text/xml')
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response.templates[0].name, u'Book    template')
    self.assertEqual(response.content, 'Blink    -    Malcolm    Gladwell')
