#NEWLINE# def test_average_int32_throw( self ) : #NEWLINE# #INDENT# ex = 'ex' #NEWLINE# scheduler = TestScheduler ( ) #NEWLINE# msgs = [ on_next ( 150 , 1 ) , on_error ( 210 , ex ) ] #NEWLINE# xs = scheduler . create_hot_observable ( msgs ) #NEWLINE# def create( ) : #NEWLINE# #INDENT# return xs . average ( ) #NEWLINE# #UNINDENT# res = scheduler . start ( create = create ) . messages #NEWLINE# res . assert_equal ( on_error ( 210 , ex ) )