#NEWLINE# def test_fill_in_the_gaps( self ) : #NEWLINE# #INDENT# foo = textgrid . textgrid . IntervalTier ( 'foo' , maxTime = 3.5 ) #NEWLINE# foo . add ( 1.3 , 2.4 , 'bar' ) #NEWLINE# foo . add ( 2.7 , 3.3 , 'baz' ) #NEWLINE# temp = foo . _fillInTheGaps ( '' ) #NEWLINE# self . assertEqual ( repr ( temp [ 0 ] ) , 'Interval(0.0, 1.3, None)' ) #NEWLINE# self . assertEqual ( repr ( temp [ ( - 1 ) ] ) , 'Interval(3.3, 3.5, None)' ) #NEWLINE# self . assertEqual ( repr ( temp [ 2 ] ) , 'Interval(2.4, 2.7, None)' )