'review tags are preserved in section editing.'

def test_section_edit_review_tags(self):

    self.client.login(username='admin', password='testpass')
    rev = revision(is_approved=True, save=True, content='\n                                                <h1    id="s1">s1</h1>\n                                                <p>test</p>\n                                                <p>test</p>\n\n                                                <h1    id="s2">s2</h1>\n                                                <p>test</p>\n                                                <p>test</p>\n\n                                                <h1    id="s3">s3</h1>\n                                                <p>test</p>\n                                                <p>test</p>\n                                ')
    tags_to_save = ['bar', 'foo']
    rev.save()
    rev.review_tags.set(*tags_to_save)
    replace = '\n                                <h1    id="s2">s2</h1>\n                                <p>replace</p>\n                                '
    self.client.post(('%s?section=s2&raw=true' % reverse('wiki.edit', args=[rev.document.slug])), {'form-type': 'rev', 'slug': rev.document.slug, 'content': replace}, follow=True, HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    changed = Document.objects.get(pk=rev.document.id).current_revision
    ok_((rev.id != changed.id))
    eq_(set(tags_to_save), set([t.name for t in changed.review_tags.all()]))
