#NEWLINE# def test_find_single( self ) : #NEWLINE# #INDENT# scheduler = TestScheduler ( ) #NEWLINE# xs = scheduler . create_hot_observable ( on_next ( 150 , 1 ) , on_next ( 210 , 2 ) , on_completed ( 220 ) ) #NEWLINE# def create( ) : #NEWLINE# #INDENT# return xs . find ( ( lambda x , i , s : ( x == 2 ) ) ) #NEWLINE# #UNINDENT# res = scheduler . start ( scheduler ) #NEWLINE# res . messages . assert_equal ( on_next ( 210 , 2 ) , on_completed ( 210 ) )