예제 #1
0
def test_entities_text(capsys):
    snippets.entities_text()
    out, _ = capsys.readouterr()
    assert 'name' in out
    assert ': Kennedy' in out
예제 #2
0
def test_entities_text(capsys):
    snippets.entities_text('President Obama is speaking at the White House.')
    out, _ = capsys.readouterr()
    assert 'name' in out
    assert ': Obama' in out