#NEWLINE# def test_segmenter_is_run( self ) : #NEWLINE# #INDENT# with mock . patch ( 'iepy.preprocess.segmenter.SyntacticSegmenterRunner' ) as mock_segmenter : #NEWLINE# #INDENT# kind = EntityKindFactory ( ) #NEWLINE# doc = IEDocFactory ( ) #NEWLINE# offset = 0 #NEWLINE# offset_end = 1 #NEWLINE# EntityOccurrenceManager . create_with_entity ( kind , doc , offset , offset_end ) #NEWLINE# self . assertTrue ( mock_segmenter . called )