#NEWLINE# def test_choose_other_exception( self ) : #NEWLINE# #INDENT# l = [ 5 , 1 , 0 , 0 ] #NEWLINE# pi = self . build ( ( lambda : ( ( 1 / l . pop ( ) ) and '0\n' ) ) ) #NEWLINE# self . assertEqual ( pi . choose ( pi , 'abc' ) , '0\n' ) #NEWLINE# self . assertEqual ( pi , [ 5 ] ) #NEWLINE# self . assert_ ( ( 'huh?' in pi . out . getvalue ( ) ) )