#NEWLINE# def test_sortlevel_not_sort_remaining( self ) : #NEWLINE# #INDENT# mi = MultiIndex . from_tuples ( [ [ 1 , 1 , 3 ] , [ 1 , 1 , 1 ] ] , names = list ( 'ABC' ) ) #NEWLINE# ( sorted_idx , _ ) = mi . sortlevel ( 'A' , sort_remaining = False ) #NEWLINE# self . assertTrue ( sorted_idx . equals ( self ) )