#NEWLINE# def testPackEasy( self ) : #NEWLINE# #INDENT# boxes = [ Box ( 2 , 1 ) , Box ( 1 , 1 ) , Box ( 1 , 1 ) ] #NEWLINE# packing = [ ( 0 , 0 , Box ( 2 , 1 ) ) , ( 0 , 1 , Box ( 1 , 1 ) ) , ( 1 , 1 , Box ( 1 , 1 ) ) ] #NEWLINE# ( _ , _ , actual ) = pack_boxes ( boxes , 2 ) #NEWLINE# self . assert_ ( check_no_overlap ( actual ) ) #NEWLINE# self . assertEqual ( _ , packing )