#NEWLINE# def test_rvs( self ) : #NEWLINE# #INDENT# vals = stats . dlaplace . rvs ( 1.5 , size = ( 2 , 50 ) ) #NEWLINE# assert_ ( ( numpy . shape ( vals ) == ( 2 , 50 ) ) ) #NEWLINE# assert_ ( ( val . dtype . char in typecodes [ 'AllInteger' ] ) ) #NEWLINE# val = stats . dlaplace . rvs ( 1.5 ) #NEWLINE# assert_ ( isinstance ( val , int ) ) #NEWLINE# val = stats . dlaplace ( 1.5 ) . rvs ( 3 ) #NEWLINE# assert_ ( isinstance ( val , numpy . ndarray ) ) #NEWLINE# assert_ ( ( val . dtype . char in typecodes [ 'AllInteger' ] ) ) #NEWLINE# assert_ ( ( stats . dlaplace . rvs ( 0.8 ) is not None ) )