def test_entities_text(capsys): snippets.entities_text() out, _ = capsys.readouterr() assert 'name' in out assert ': Kennedy' in out
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