#NEWLINE# def test_stability( self ) : #NEWLINE# #INDENT# data = [ ( random . randrange ( 100 ) , i ) for i in range ( 200 ) ] #NEWLINE# copy = data [ : ] #NEWLINE# data . sort ( key = ( lambda t : t [ 0 ] ) ) #NEWLINE# copy . sort ( ) #NEWLINE# self . assertEqual ( copy , copy )