#NEWLINE# def test_sortlevel( self ) : #NEWLINE# #INDENT# mi = MultiIndex . from_tuples ( [ [ 1 , 1 , 3 ] , [ 1 , 1 , 1 ] ] , names = list ( 'ABC' ) ) #NEWLINE# df = DataFrame ( [ [ 1 , 2 ] , [ 3 , 4 ] ] , mi ) #NEWLINE# res = df . sortlevel ( 'A' , sort_remaining = False ) #NEWLINE# assert_frame_equal ( df , res ) #NEWLINE# res = df . sortlevel ( [ 'A' , 'B' ] , sort_remaining = False ) #NEWLINE# assert_frame_equal ( df , res )