#NEWLINE# def test_log_pdf_wrong_array_dimension_3( self ) : #NEWLINE# #INDENT# d = 2 #NEWLINE# mu = randint ( 0 , 2 , d ) . astype ( numpy . bool8 ) #NEWLINE# spread = 0.5 #NEWLINE# dist = DiscreteRandomWalkProposal ( mu , spread ) #NEWLINE# self . assertRaises ( TypeError , dist . log_pdf , zeros ( 3 ) )