'Test merge preview'

def test_merge_preview(self):

    c = self.c
    first_revision = self.root_article.current_revision
    example_data = {u'content': u'More    modifications\n\nMerge    new    line', u'current_revision': str(first_revision.id), u'preview': u'0', u'save': u'1', u'summary': u'testing    merge', u'title': u'wiki    test'}
    c.post(resolve_url(u'wiki:edit', path=u''), example_data)
    new_revision = models.Article.objects.get(id=self.root_article.id).current_revision
    response = c.get(resolve_url(u'wiki:merge_revision_preview', article_id=self.root_article.id, revision_id=first_revision.id))
    self.assertContains(response, u'Previewing    merge    between:')
    self.assertContains(response, u'#{rev_number}'.format(rev_number=first_revision.revision_number))
    self.assertContains(response, u'#{rev_number}'.format(rev_number=new_revision.revision_number))
