From b0ef494546f746bf5b30642c5810d214677b6c9c Mon Sep 17 00:00:00 2001 From: David Vierra Date: Tue, 30 Oct 2012 18:47:36 -1000 Subject: [PATCH] Test: copyBlocksFrom no longer fails if the requested box is partially out of the source level's bounds. It should just copy the area within the requested box. --- test/schematic_test.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/schematic_test.py b/test/schematic_test.py index a4e34f1..d757919 100644 --- a/test/schematic_test.py +++ b/test/schematic_test.py @@ -22,10 +22,6 @@ class TestSchematics(unittest.TestCase): schematic = MCSchematic(shape=size, filename=temp, mats='Classic') level = self.indevLevel.level - self.failUnlessRaises(ValueError, lambda: ( - schematic.copyBlocksFrom(level, BoundingBox((-32, -32, -32), (64, 64, 64,)), (0, 0, 0)) - )) - schematic.copyBlocksFrom(level, BoundingBox((0, 0, 0), (64, 64, 64,)), (0, 0, 0)) assert((schematic.Blocks[0:64, 0:64, 0:64] == level.Blocks[0:64, 0:64, 0:64]).all())