def METHOD_NAME(self):
    def basic_icon():
        pixmap = QPixmap(15, 15)
        pixmap.fill(QColor("red"))
        return QIcon(pixmap)
    def basic_scene():
        scene = QGraphicsScene()
        scene.addRect(QRectF(0, 0, 100, 100));
        return scene
    rep = OWReport()
    model = PyTableModel([['x', 1, 2]])
    model.setHorizontalHeaderLabels(['a', 'b', 'c'])
    model.setData(model.index(0, 1), basic_icon(), Qt.DecorationRole)
    model.setData(model.index(0, 2), basic_scene(), Qt.DisplayRole)
    view = gui.TableView()
    view.show()
    view.setModel(model)
    rep.report_table('Name', view)
    self.assertIsNotNone(
        re.search('<img(.*) src="data:image/png;base64,', rep.report_html))