'Test Akismet dual locale setting for new translations.'

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

    rev_form = self.setup_form(mock_requests)
    assert rev_form.is_valid()
    parameters = rev_form.akismet_parameters()
    assert (sorted(parameters.keys()) == self.akismet_keys)
    assert (parameters['blog_lang'] == 'fr,    en_us')
    expected_content = u'Guide    de    d\xe9veloppement    HTML\n<p><strong>HyperText    Markup    Language    (HTML)</strong>,    ou    <em>langage    de    balisage    hypertexte</em>,    est    le    langage    au    c\u0153ur    de    presque    tout    contenu    Web.</p>\nTraduction    initiale'
    assert (parameters['comment_content'] == expected_content)
