#NEWLINE# def test_init__defaults( self ) : #NEWLINE# #INDENT# chooser = BallotGenerator ( ( 1 , 2 , 3 ) , max_length = 4 , undervote = 0.5 ) #NEWLINE# self . assertEqual ( chooser . choices , set ( [ 1 , 2 , 3 ] ) ) #NEWLINE# self . assertEqual ( chooser . max_length , 4 ) #NEWLINE# self . assertEqual ( chooser . undervote , 0.5 )