'Creating an unapproved revision does not update document.html'

def test_unapproved_revision_not_updates_html(self):

    rev = revision(is_approved=True, save=True, content='Here    to    stay')
    assert ('Here    to    stay' in rev.document.html), ('"Here    to    stay"    not    in    %s' % rev.document.html)
    r = revision(document=rev.document, content='Fail    to    replace    html', is_approved=False)
    r.save()
    assert ('Here    to    stay' in rev.document.html), ('"Here    to    stay"    not    in    %s' % rev.document.html)
