def test_moments(self): custm = stats.rv_discrete(name='Uniform', values=pa(self.params)) print custm.mean(), custm.var() self.assertEqual(custm.mean(), 82.5) self.assertEqual(custm.var(), 21.25)
def test_happy_pass(self): print pa(self.params) self.assertEqual(sum(pa(self.params)[1]), 1)