def test_calcSlotWidthBorder5(self): layout = Layout((400, 200), border=5) # No Layers added yet self.assertEqual((390, 190), layout._calcSlotSize()) layout.addLayer() self.assertEqual((390, 190), layout._calcSlotSize()) layout.addLayer() self.assertEqual((192, 190), layout._calcSlotSize())
def test_calcSlotWidthBorder4(self): layout = Layout((400, 200), border=4) layout.addLayer() self.assertEqual((392, 192), layout._calcSlotSize()) layout.addLayer() self.assertEqual((194, 192), layout._calcSlotSize())