#NEWLINE# def test_low_sample_count( self ) : #NEWLINE# #INDENT# uni = Uniform ( ) #NEWLINE# uni . num_samples = 1 #NEWLINE# try : #NEWLINE# #INDENT# for case in uni : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# except ValueError as err : #NEWLINE# #INDENT# self . assertEqual ( str ( err ) , 'Uniform distributions must have at least 2 samples. num_samples is set to less than 2.' )