def test_render_png(): renderer = QImageSvgRenderer('resources/images/gns3_icon_256x256.png') assert renderer.isValid()
def test_render_svg(): renderer = QImageSvgRenderer('resources/symbols/router.svg') assert renderer.isValid()
def test_render_text_svg(): renderer = QImageSvgRenderer('<svg></svg>') assert renderer.isValid()
def test_render_text_broken_svg(): renderer = QImageSvgRenderer('<svg></svg') assert renderer.isValid() is False
def test_render_png(): renderer = QImageSvgRenderer('resources/images/MNSS.ico') assert renderer.isValid()