Lines Matching refs:setstate
32 self.gen.setstate(state) # should regenerate the same sequence
167 self.assertRaises(ValueError, self.gen.setstate, (2, None, None))
176 self.gen.setstate(s)
214 self.assertRaises(NotImplementedError, self.gen.setstate, None)
327 self.assertRaises(ValueError, self.gen.setstate, (1, None, None))
332 self.assertRaises(TypeError, self.gen.setstate, (2, None, None))
334 self.assertRaises(ValueError, self.gen.setstate, (2, (1,2,3), None))
336 self.assertRaises(TypeError, self.gen.setstate, (2, ('a',)*625, None))
338 self.assertRaises(TypeError, self.gen.setstate, (2, (0,)*624+('a',), None))
341 self.gen.setstate((2, (1,)*624+(625,), None))
343 self.gen.setstate((2, (1,)*624+(-1,), None))
346 self.gen.setstate(start_state)