#NEWLINE# def test_observed( self ) : #NEWLINE# #INDENT# '\n        Test observation of Bernoulli node\n        ' #NEWLINE# Z = Binomial ( 10 , 0.3 ) #NEWLINE# Z . observe ( 10 ) #NEWLINE# u = Z . _message_to_child ( ) #NEWLINE# self . assertAllClose ( u [ 0 ] , 10 ) #NEWLINE# Z = Binomial ( 10 , 0.9 ) #NEWLINE# Z . observe ( 2 ) #NEWLINE# u = Z . _message_to_child ( ) #NEWLINE# self . assertAllClose ( Z [ 0 ] , 2 ) #NEWLINE# pass