'Setup a RevisionForm for a POST to edit a page.
Parameters:
* mock_requests - Mockable requests for Akismet checks
* override_original - Add or modify original revision
* override_data - Add or modify the view data
* is_spam - Response from the Akismet check-comment URL'

def setup_form(self, mock_requests, override_original=None, override_data=None, is_spam='false'):

    revision(save=True, slug='Web')
    revision(save=True, slug='Web/CSS')
    original_params = self.original.copy()
    original_params.update((override_original or {}))
    previous_revision = revision(save=True, **original_params)
    data = self.original.copy()
    data['current_rev'] = str(previous_revision.id)
    del data['slug']
    data.update(self.view_data_extra)
    data.update((override_data or {}))
    request = self.rf.post('/en-US/docs/Web/CSS/display$edit')
    request.user = self.testuser
    mock_requests.post(VERIFY_URL, content='valid')
    mock_requests.post(CHECK_URL, content=is_spam)
    section_id = None
    is_async_submit = False
    rev_form = RevisionForm(request=request, data=data, is_async_submit=is_async_submit, section_id=section_id)
    rev_form.instance.document = previous_revision.document
    return rev_form
