def METHOD_NAME(qtbot):
    with pytest.raises(IOError):
        my_display = Display(parent=None, ui_filename="this_doesnt_exist.ui")
    class TestDisplay(Display):
        def ui_filename(self):
            return "this_doesnt_exist.ui"
    with pytest.raises(IOError):
        my_display = TestDisplay(parent=None)