def test_widget_html(qtbot):
    widget = HTMLWidget()
    widget.add_styles('html, body, p {background-color: purple;}')
    widget.add_header('<!-- comment -->')
    widget.set_body('Hello world!')
    widget.show()
    # qtbot.waitForWindowShown(widget)
    assert 'Hello world!' in widget.html()
dataset/ETHPy150Open kwikteam/phy/phy/gui/tests/test_widgets.py/test_widget_html/original