#NEWLINE# def test_timeout_duration_simple_never( self ) : #NEWLINE# #INDENT# scheduler = TestScheduler ( ) #NEWLINE# xs = scheduler . create_hot_observable ( on_next ( 310 , 1 ) , on_next ( 350 , 2 ) , on_next ( 420 , 3 ) , on_completed ( 450 ) ) #NEWLINE# ys = scheduler . create_cold_observable ( ) #NEWLINE# def create( ) : #NEWLINE# #INDENT# return xs . timeout_with_selector ( ys , ( lambda _ : ys ) ) #NEWLINE# #UNINDENT# results = scheduler . start ( create ) #NEWLINE# results . messages . assert_equal ( on_next ( 310 , 1 ) , on_next ( 350 , 2 ) , on_next ( 420 , 3 ) , on_completed ( 450 ) ) #NEWLINE# xs . subscriptions . assert_equal ( subscribe ( 200 , 450 ) ) #NEWLINE# ys . subscriptions . assert_equal ( subscribe ( 200 , 310 ) , subscribe ( 310 , 350 ) , subscribe ( 350 , 420 ) , subscribe ( 420 , 450 ) )