#NEWLINE# def test_sample_wrong_n_type_float( self ) : #NEWLINE# #INDENT# mu = randint ( 0 , 2 , 10 ) . astype ( numpy . bool8 ) #NEWLINE# spread = 0.5 #NEWLINE# dist = DiscreteRandomWalkProposal ( mu , spread ) #NEWLINE# self . assertRaises ( TypeError , mu . sample , float ( 1.0 ) )