'The document view shouldn\'t redirect to itself.'

def test_self_redirect_suppression(self):

    slug = 'redirdoc'
    html = ('REDIRECT    <a    class="redirect"    href="/en-US/docs/%s">smoo</a>' % slug)
    doc = document(title='blah', slug=slug, html=html, save=True, locale=settings.WIKI_DEFAULT_LANGUAGE)
    revision(document=doc, content=html, is_approved=True, save=True)
    response = self.client.get(doc.get_absolute_url(), follow=True)
    eq_(200, response.status_code)
    response_html = pq(response.content)
    article_body = response_html.find('#wikiArticle').html()
    self.assertHTMLEqual(html, article_body)
