(self)
| 43 | self.assertNotEqual(state1, state2) |
| 44 | |
| 45 | def test_saverestore(self): |
| 46 | N = 1000 |
| 47 | self.gen.seed() |
| 48 | state = self.gen.getstate() |
| 49 | randseq = self.randomlist(N) |
| 50 | self.gen.setstate(state) # should regenerate the same sequence |
| 51 | self.assertEqual(randseq, self.randomlist(N)) |
| 52 | |
| 53 | def test_seedargs(self): |
| 54 | # Seed value with a negative hash. |
nothing calls this directly
no test coverage detected