'Bug 821988: Revision content should be cleaned with bleach'

def test_revision_view_bleached_content(self):

    rev = revision(is_approved=True, save=True, content='\n                                                <a    href="#"    onload=alert(3)>Hahaha</a>\n                                                <svg><svg    onload=alert(3);>\n                                ')
    resp = self.client.get(rev.get_absolute_url())
    page = pq(resp.content)
    ct = page.find('#wikiArticle').html()
    ok_(('<svg>' not in ct))
    ok_(('<a    href="#">Hahaha</a>' in ct))
