Пример #1
0
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
Пример #2
0
def test_sentiment_text(capsys):
    snippets.sentiment_text()
    out, _ = capsys.readouterr()
    assert 'Score: ' in out
Пример #3
0
def test_sentiment_text(capsys):
    snippets.sentiment_text('No! God please, no!')
    out, _ = capsys.readouterr()
    assert 'Score: ' in out
Пример #4
0
def test_sentiment_text(capsys):
    snippets.sentiment_text('President Obama is speaking at the White House.')
    out, _ = capsys.readouterr()
    assert 'Score: 0' in out
def test_sentiment_text(capsys):
    snippets.sentiment_text('No! God please, no!')
    out, _ = capsys.readouterr()
    assert 'Score: ' in out