def test_draw_para_with_content_that_fits(self, mock): self.img._draw_para() current_h = math.floor( (self.img.height - self.img.para.height) / 2) mock.assert_called_once_with(current_h, self.img.para)