#NEWLINE# def test_command_block( ) : #NEWLINE# #INDENT# level = TempLevel ( 'AnvilWorld' ) . level #NEWLINE# cmdblock = fromFile ( 'testfiles/Commandblock.schematic' ) #NEWLINE# point = ( level . bounds . origin + [ ( p / 2 ) for p in level . bounds . size ] ) #NEWLINE# level . copyBlocksFrom ( cmdblock , cmdblock . bounds , point ) #NEWLINE# te = level . tileEntityAt ( * point ) #NEWLINE# command = te [ 'Command' ] . value #NEWLINE# words = command . split ( ' ' ) #NEWLINE# ( x , y , z ) = words [ 2 : 5 ] #NEWLINE# assert ( x == str ( point [ 0 ] ) ) #NEWLINE# assert ( y == str ( ( point [ 1 ] + 10 ) ) ) #NEWLINE# assert ( z == str ( point [ 2 ] ) )