Ejemplo n.º 1
0
def test_sentiment_entities_utf(capsys):
    snippets.entity_sentiment_text(
        'foo→bar')
    out, _ = capsys.readouterr()
    assert 'Begin Offset : 4' in out
Ejemplo n.º 2
0
def test_sentiment_entities_text(capsys):
    snippets.entity_sentiment_text()
    out, _ = capsys.readouterr()
    assert 'Content : White House' in out
Ejemplo n.º 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