#NEWLINE# def test_timeout_datetime_offset_timeout_occur_2( 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 ( on_next ( 100 , ( - 1 ) ) ) #NEWLINE# def create( ) : #NEWLINE# #INDENT# return xs . timeout ( datetime . fromtimestamp ( ( 400 / 1000.0 ) ) , ys , scheduler = scheduler ) #NEWLINE# #UNINDENT# results = scheduler . start ( scheduler ) #NEWLINE# results . messages . assert_equal ( on_next ( 310 , 1 ) , on_next ( 350 , 2 ) , on_next ( 500 , ( - 1 ) ) ) #NEWLINE# xs . subscriptions . assert_equal ( subscribe ( 200 , 400 ) ) #NEWLINE# ys . subscriptions . assert_equal ( subscribe ( 400 , 1000 ) )