#NEWLINE# def test_on_completed_accept_action( ) : #NEWLINE# #INDENT# obs = [ False ] #NEWLINE# n1 = OnCompleted ( ) #NEWLINE# def on_next( x ) : #NEWLINE# #INDENT# assert False #NEWLINE# return None #NEWLINE# #UNINDENT# def on_error( ex ) : #NEWLINE# #INDENT# assert False #NEWLINE# return None #NEWLINE# #UNINDENT# def on_completed( ) : #NEWLINE# #INDENT# obs [ 0 ] = True #NEWLINE# return obs [ 0 ] #NEWLINE# #UNINDENT# n1 . accept ( on_next , obs , on_completed ) #NEWLINE# assert obs [ 0 ]