#NEWLINE# def test_timeout_in_time( self ) : #NEWLINE# #INDENT# scheduler = TestScheduler ( ) #NEWLINE# xs = scheduler . create_hot_observable ( on_next ( 150 , 1 ) , on_next ( 210 , 2 ) , on_next ( 230 , 3 ) , on_next ( 260 , 4 ) , on_next ( 300 , 5 ) , on_next ( 350 , 6 ) , on_completed ( 400 ) ) #NEWLINE# def create( ) : #NEWLINE# #INDENT# return xs . timeout ( 500 , None , scheduler = scheduler ) #NEWLINE# #UNINDENT# results = scheduler . start ( create ) #NEWLINE# results . messages . assert_equal ( on_next ( 210 , 2 ) , on_next ( 230 , 3 ) , on_next ( 260 , 4 ) , on_next ( 300 , 5 ) , on_next ( 350 , 6 ) , on_completed ( 400 ) )