(self)
| 163 | float(1)) |
| 164 | |
| 165 | def test_invalid_prob(self): |
| 166 | assert_raises(ValueError, random.multinomial, 100, [1.1, 0.2]) |
| 167 | assert_raises(ValueError, random.multinomial, 100, [-.1, 0.9]) |
| 168 | |
| 169 | def test_invalid_n(self): |
| 170 | assert_raises(ValueError, random.multinomial, -1, [0.8, 0.2]) |
nothing calls this directly
no test coverage detected