(self)
| 200 | assert_(np.all(old == new)) |
| 201 | |
| 202 | def test_gaussian_reset(self): |
| 203 | # Make sure the cached every-other-Gaussian is reset. |
| 204 | old = self.random_state.standard_normal(size=3) |
| 205 | self.random_state.set_state(self.state) |
| 206 | new = self.random_state.standard_normal(size=3) |
| 207 | assert_(np.all(old == new)) |
| 208 | |
| 209 | def test_gaussian_reset_in_media_res(self): |
| 210 | # When the state is saved with a cached Gaussian, make sure the |