def test_optimize(self):
        renderer = PngRenderer(png8=False, optimize=2)
        contents = renderer.render(image=self.image)
        self.assertEqual(intmd5(contents),
                         227024021824580215543073313661866089265)

        # Default is PNG8=False and optimize=2
        renderer = PngRenderer()
        contents = renderer.render(image=self.image)
        self.assertEqual(intmd5(contents),
                         89446660811628514001822794642426893173)
    def test_optimize(self):
        renderer = PngRenderer(png8=False, optimize=2)
        contents = renderer.render(image=self.image)
        self.assertEqual(intmd5(contents),
                         227024021824580215543073313661866089265)

        # Default is PNG8=False and optimize=2
        renderer = PngRenderer()
        contents = renderer.render(image=self.image)
        self.assertEqual(intmd5(contents),
                         89446660811628514001822794642426893173)
 def test_png8_optimize(self):
     renderer = PngRenderer(png8=True, optimize=2)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      151059771043192964835020617733646275057)
 def test_interlace(self):
     renderer = PngRenderer(interlace=1, png8=False, optimize=False)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      197686704564132731296723533976357306757)
 def test_compression(self):
     renderer = PngRenderer(compression=1, png8=False, optimize=False)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      227024021824580215543073313661866089265)
 def test_simple(self):
     renderer = PngRenderer(png8=False, optimize=False)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      89446660811628514001822794642426893173)
 def test_png8_optimize(self):
     renderer = PngRenderer(png8=True, optimize=2)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      106831624867432276165545554861383631224)
 def test_interlace(self):
     renderer = PngRenderer(interlace=1, png8=False, optimize=False)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      197686704564132731296723533976357306757)
 def test_compression(self):
     renderer = PngRenderer(compression=1, png8=False, optimize=False)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      227024021824580215543073313661866089265)
 def test_simple(self):
     renderer = PngRenderer(png8=False, optimize=False)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      89446660811628514001822794642426893173)
 def test_png8_optimize(self):
     renderer = PngRenderer(png8=True, optimize=2)
     contents = renderer.render(image=self.image)
     self.assertEqual(intmd5(contents),
                      151059771043192964835020617733646275057)