'Test Akismet parameters for edited English pages.'

@pytest.mark.spam
@requests_mock.mock()
def test_standard_edit(self, mock_requests):

    rev_form = self.setup_form(mock_requests)
    assert rev_form.is_valid(), rev_form.errors
    parameters = rev_form.akismet_parameters()
    assert (sorted(parameters.keys()) == self.akismet_keys_edit)
    expected_content = '<p>{{cssinfo}}    and    my    changes.</p>\n<p><a    href="http://spam.example.com">Buy    my    product!</a></p>\n<pre    class="brush:css">display:    none;</pre>\nComment'
    assert (parameters['comment_content'] == expected_content)
    assert (parameters['comment_type'] == 'wiki-revision')
    assert (parameters['blog'] == 'http://testserver/')
    assert (parameters['blog_lang'] == 'en_us')
    assert (parameters['blog_charset'] == 'UTF-8')
    assert (parameters['REMOTE_ADDR'] == '127.0.0.1')
    assert (parameters['permalink'] == 'http://testserver/en-US/docs/Web/CSS/display')
