def test_low_sample_count(self): 
        uni = Uniform()
        uni.num_samples = 1
        
        try: 
            for case in uni: 
                pass
        except __HOLE__ as err: 
            self.assertEqual(str(err),"Uniform distributions "
                             "must have at least 2 samples. "
                             "num_samples is set to less than 2.")
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/doegenerators/test/test_uniform.py/TestCase.test_low_sample_count