#NEWLINE# @ unittest . skipIf ( ( sys . version_info [ 0 ] >= 3 ) , 'Not for Python 3' ) #NEWLINE# def test_sort_cmp( self ) : #NEWLINE# #INDENT# f = Foo ( ) #NEWLINE# f . l = [ 'a' , 'c' , 'b' , 'd' ] #NEWLINE# f . l . sort ( cmp = ( lambda x , y : ( ord ( x ) - ord ( y ) ) ) ) #NEWLINE# self . assertEqual ( self . l , [ 'a' , 'b' , 'c' , 'd' ] )