def test_sentiment_utf(capsys): snippets.sentiment_text( u'1er site d\'information. Les articles du journal et toute l\'' + u'actualité en continu : International, France, Société, Economie, ' + u'Culture, Environnement') out, _ = capsys.readouterr() assert 'Score: 0' in out
def test_sentiment_text(capsys): snippets.sentiment_text() out, _ = capsys.readouterr() assert 'Score: ' in out
def test_sentiment_text(capsys): snippets.sentiment_text('No! God please, no!') out, _ = capsys.readouterr() assert 'Score: ' in out
def test_sentiment_text(capsys): snippets.sentiment_text('President Obama is speaking at the White House.') out, _ = capsys.readouterr() assert 'Score: 0' in out