def test_spans_span_sent(doc):
 assert len(list(doc.sents))
 assert (doc[:2].sent.root.text == u'is')
 assert (doc[:2].sent.text == u'This is a sentence .')
 assert (doc[6:7].sent.root.left_edge.text == u'This')

def test_spans_span_sent ( doc ) : assert len ( list ( doc . sents ) ) assert ( doc [ : 2 ] . sent . root . text == u'is' ) assert ( doc [ : 2 ] . sent . text == u'This is a sentence .' ) assert ( doc [ 6 : 7 ] . sent . root . left_edge . text == u'This' )
test span .