예제 #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