def test_text_with_image(self):
        pdf = SimplePdf(self._testMethodName + ".pdf")

        pdf.add_header(self.short_header)
        pdf.add_header(self.short_header)
        pdf.add_header(self.short_header)
        pdf.add_text(self.text)
        pdf.add_image(self.small_image_filename)
        pdf.add_text("End line")
        pdf.save()
    def test_long_text_with_headers(self):
        pdf = SimplePdf(self._testMethodName + ".pdf")

        pdf.add_header(self.long_header)
        pdf.add_text(self.text)
        pdf.add_header(self.short_header)
        pdf.add_text(self.text)
        pdf.add_header(self.short_header)
        pdf.add_text(self.text)
        pdf.save()