Esempio n. 1
0
 def test_box_dims(self):
     t = Template()
     t.add(Block(5))
     t.add(Block(5, posy=1))
     t.add(Block(5, posy=2))
     assert t.box_dimensions() == (1, 3, 1)
     t.add(Block(5, posz=1))
     assert t.box_dimensions() == (1, 3, 2)
     t2 = Template()
     t2.add(Block(5, posx=-5))
     t2.add(Block(5, posx=-4))
     assert t2.box_dimensions() == (2, 1, 1)
Esempio n. 2
0
 def test_empty(self):
     t = Template()
     d = t.box_dimensions()
     b = t.count_by_block()
     assert True