#NEWLINE# def testPackSequenceHeightWidth( self ) : #NEWLINE# #INDENT# boxes = [ Box ( i , j ) for i in range ( 1 , 4 ) for j in range ( 1 , 4 ) ] #NEWLINE# packing = [ ( 0 , 0 , Box ( 3 , 3 ) ) , ( 0 , 3 , Box ( 2 , 3 ) ) , ( 2 , 3 , Box ( 1 , 3 ) ) , ( 0 , 6 , Box ( 3 , 2 ) ) , ( 0 , 8 , Box ( 2 , 2 ) ) , ( 2 , 8 , Box ( 1 , 2 ) ) , ( 0 , 10 , Box ( 3 , 1 ) ) , ( 0 , 11 , Box ( 2 , 1 ) ) , ( 2 , 11 , Box ( 1 , 1 ) ) ] #NEWLINE# ( _ , _ , actual ) = pack_boxes ( self , 3 ) #NEWLINE# self . assert_ ( check_no_overlap ( actual ) ) #NEWLINE# self . assertEqual ( actual , packing )