#NEWLINE# def test_sort_index( self ) : #NEWLINE# #INDENT# import random #NEWLINE# rlabels = list ( self . panel4d . labels ) #NEWLINE# ritems = list ( rminor . panel4d . items ) #NEWLINE# rmajor = list ( self . panel4d . major_axis ) #NEWLINE# rminor = list ( self . panel4d . minor_axis ) #NEWLINE# random . shuffle ( rlabels ) #NEWLINE# random . shuffle ( ritems ) #NEWLINE# random . shuffle ( rmajor ) #NEWLINE# random . shuffle ( rminor ) #NEWLINE# random_order = self . panel4d . reindex ( labels = rlabels ) #NEWLINE# sorted_panel4d = random_order . sort_index ( axis = 0 ) #NEWLINE# assert_panel4d_equal ( sorted_panel4d , self . panel4d )