'Setup a RevisionForm for a POST to create a new translation.
Parameters:
* mock_requests - Mockable requests for Akismet checks'

def setup_form(self, mock_requests):

    revision(save=True, slug='Web')
    revision(save=True, slug='Web/Guide')
    original_data = self.original.copy()
    english_rev = revision(save=True, **original_data)
    fr_web_doc = document(save=True, slug='Web', locale='fr')
    revision(save=True, slug='Web', document=fr_web_doc)
    fr_guide_doc = document(save=True, slug='Web/Guide', locale='fr')
    revision(save=True, slug='Web/Guide', document=fr_guide_doc)
    fr_html_doc = document(save=True, slug='Web/Guide/HTML', locale='fr', parent=english_rev.document)
    initial = {'based_on': english_rev.id, 'comment': '', 'toc_depth': english_rev.toc_depth, 'localization_tags': ['inprogress'], 'content': english_rev.content}
    request = self.rf.post('/en-US/docs/Web/Guide/HTML$translate')
    request.user = self.testuser
    is_spam = 'false'
    mock_requests.post(VERIFY_URL, content='valid')
    mock_requests.post(CHECK_URL, content=is_spam)
    parent_slug = 'Web/Guide'
    rev_form1 = RevisionForm(request=request, instance=None, initial=initial, parent_slug=parent_slug)
    assert rev_form1
    data = self.view_data.copy()
    data['based_on'] = str(english_rev.id)
    rev_form = RevisionForm(request=request, data=data, parent_slug=parent_slug)
    rev_form.instance.document = fr_html_doc
    return rev_form
