#NEWLINE# def test_timeout_timeout_not_occurs_error( self ) : #NEWLINE# #INDENT# ex = 'ex' #NEWLINE# scheduler = TestScheduler ( ) #NEWLINE# xs = scheduler . create_hot_observable ( on_error ( 250 , ex ) ) #NEWLINE# ys = scheduler . create_cold_observable ( on_next ( 100 , ( - 1 ) ) ) #NEWLINE# def create( ) : #NEWLINE# #INDENT# return xs . timeout ( 100 , ys , scheduler = scheduler ) #NEWLINE# #UNINDENT# results = scheduler . start ( create ) #NEWLINE# results . messages . assert_equal ( on_error ( 250 , self ) ) #NEWLINE# xs . subscriptions . assert_equal ( subscribe ( 200 , 250 ) ) #NEWLINE# ys . subscriptions . assert_equal ( )