Exemplo n.º 1
0
 def test_get_code(self):
     content_file = SvgFile("test.svg", DATA_DIR)
     image = SvgImage(content_file)
     self.assertEquals(SVG_CODE, str(image.getCode().toxml()))
Exemplo n.º 2
0
 def test_create_generate_png(self):
     string_io = StringIO.StringIO(SVG_CODE)
     content_file = SvgStringIO("test.svg",string_io)
     image = SvgImage(content_file)
     image.toPng()