'PUT API should handle text/html requests'

def test_put_simple_html(self):

    slug = 'new-root-html-doc-1'
    url = reverse('wiki.document', args=(slug,), locale=settings.WIKI_DEFAULT_LANGUAGE)
    html = '\n                                                <p>This    is    a    new    page,    hooray!</p>\n                                '
    resp = self._put(url, html, content_type='text/html', HTTP_AUTHORIZATION=self.basic_auth)
    eq_(201, resp.status_code)
    new_doc = Document.objects.get(locale=settings.WIKI_DEFAULT_LANGUAGE, slug=slug)
    eq_(normalize_html(html), normalize_html(new_doc.html))
