def test_exponential_five_to_ten(self): test_class = dis.ExponentialDistribution() test_class.set_variables(5, 10, 3) self.assertTrue(5.0 <= test_class.bootstrap() <= 10.0)
def test_exponential_eleven_constant(self): test_class = dis.ExponentialDistribution() test_class.set_variables(11, 11, 3) self.assertEqual(test_class.bootstrap(), 11.0)
def test_exponential_incorrect_lambda(self): test_class = dis.ExponentialDistribution() self.assertRaises(Exception, test_class.set_variables, 1, 2, -3)
def test_exponential_five_constant(self): test_class = dis.ExponentialDistribution() test_class.set_variables(5, 5, 3) self.assertEqual(test_class.bootstrap(), 5.0)
def test_exponential_incorrect_highest_2(self): test_class = dis.ExponentialDistribution() self.assertRaises(Exception, test_class.set_variables, 1, -2, 3)