'Test that new English pages get the standard Akismet parameters.'

@pytest.mark.spam
@requests_mock.mock()
def test_standard_new(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)
    assert (parameters['blog'] == 'http://testserver/')
    assert (parameters['blog_charset'] == 'UTF-8')
    assert (parameters['blog_lang'] == 'en_us')
    assert (parameters['comment_author'] == 'Test    User')
    assert (parameters['comment_author_email'] == self.testuser.email)
    expected_content = 'Accessibility\nWeb/Guide/Accessibility\n<h2    id="Summary">Summary</h2>\n<p>Web    accessibility    is    removing    barriers    that    prevent    interaction    with    or    access    to    website.</p>\nInitial    version\nAccessibility\nWeb    Development'
    assert (parameters['comment_content'] == expected_content)
    assert (parameters['comment_type'] == 'wiki-revision')
    assert (parameters['referrer'] == '')
    assert (parameters['user_agent'] == '')
    assert (parameters['user_ip'] == '127.0.0.1')
