(self)
| 323 | assert_array_equal(actual, desired) |
| 324 | |
| 325 | def test_random_integers(self): |
| 326 | np.random.seed(self.seed) |
| 327 | with suppress_warnings() as sup: |
| 328 | w = sup.record(DeprecationWarning) |
| 329 | actual = np.random.random_integers(-99, 99, size=(3, 2)) |
| 330 | assert_(len(w) == 1) |
| 331 | desired = np.array([[31, 3], |
| 332 | [-52, 41], |
| 333 | [-48, -66]]) |
| 334 | assert_array_equal(actual, desired) |
| 335 | |
| 336 | def test_random_integers_max_int(self): |
| 337 | # Tests whether random_integers can generate the |
nothing calls this directly
no test coverage detected