#NEWLINE# def test_ctor_dict( self ) : #NEWLINE# #INDENT# l1 = self . panel4d [ 'l1' ] #NEWLINE# l2 = self . panel4d [ 'l2' ] #NEWLINE# d = { #NEWLINE# #INDENT# 'A' : l1 , #NEWLINE# 'B' : l2 . ix [ [ 'ItemB' ] , : , : ] , #NEWLINE# #UNINDENT# } #NEWLINE# panel4d = Panel4D ( d ) #NEWLINE# assert_panel_equal ( panel4d [ 'A' ] , self . panel4d [ 'l1' ] ) #NEWLINE# assert_frame_equal ( panel4d . ix [ 'B' , 'ItemB' , : , : ] , self . panel4d . ix [ 'l2' , [ 'ItemB' ] , : , : ] [ 'ItemB' ] )