示例#1
0
def test_sentiment_entities_utf(capsys):
    snippets.entity_sentiment_text(
        'foo→bar')
    out, _ = capsys.readouterr()
    assert 'Begin Offset : 4' in out
示例#2
0
def test_sentiment_entities_text(capsys):
    snippets.entity_sentiment_text()
    out, _ = capsys.readouterr()
    assert 'Content : White House' in out
示例#3
0
def test_sentiment_entities_text(capsys):
    snippets.entity_sentiment_text(
        'President Obama is speaking at the White House.')
    out, _ = capsys.readouterr()
    assert 'Content : White House' in out