#NEWLINE# def test_saverestore( self ) : #NEWLINE# #INDENT# N = 1000 #NEWLINE# self . gen . seed ( ) #NEWLINE# state = self . gen . getstate ( ) #NEWLINE# randseq = self . randomlist ( self ) #NEWLINE# self . gen . setstate ( state ) #NEWLINE# self . assertEqual ( randseq , self . randomlist ( N ) )