def test_move(self): block = Block(5) assert block.posx == 0 block.move_to(3, 5, 1) assert block.posx == 3 assert block.posy == 5 assert block.posz == 1
def test_block_pos_query(self): t = Template() block1 = Block(5) block1.move_to(4, 7, 3) block2 = Block(5) block2.move_to(3, 3, 3) t.add(block1) t.add(block2) compare_block = t.get_block_at(3, 3, 3) assert compare_block == block2