#NEWLINE# def test_constructor_resize( self ) : #NEWLINE# #INDENT# data = self . panel4d . _data #NEWLINE# labels = self . panel4d . labels [ : ( - 1 ) ] #NEWLINE# items = self . panel4d . items [ : ( - 1 ) ] #NEWLINE# major = self . panel4d . major_axis [ : ( - 1 ) ] #NEWLINE# minor = self . panel4d . minor_axis [ : ( - 1 ) ] #NEWLINE# result = Panel4D ( data , labels = labels , items = items , major_axis = major , minor_axis = minor ) #NEWLINE# expected = self . panel4d . reindex ( labels = labels , items = labels , major = major , minor = minor ) #NEWLINE# assert_panel4d_equal ( result , expected ) #NEWLINE# result = Panel4D ( data , items = items , major_axis = major ) #NEWLINE# expected = self . panel4d . reindex ( items = items , major = major ) #NEWLINE# assert_panel4d_equal ( result , expected ) #NEWLINE# result = Panel4D ( data , items = items ) #NEWLINE# expected = self . panel4d . reindex ( items = items ) #NEWLINE# assert_panel4d_equal ( result , expected ) #NEWLINE# result = Panel4D ( data , minor_axis = minor ) #NEWLINE# expected = self . panel4d . reindex ( minor = minor ) #NEWLINE# assert_panel4d_equal ( result , expected )