def test_RNGContext(self): expected0 = 1.764052345967664 expected1 = 1.6243453636632417 with RNGContext(0): with RNGContext(1): assert np.random.randn() == expected1 assert np.random.randn() == expected0
def test_RNGContext(self): expected0 = 1.764052345967664 expected1 = 1.6243453636632417 with RNGContext(0): with RNGContext(1): self.assertEqual(np.random.randn(), expected1) self.assertEqual(np.random.randn(), expected0)