

def test_prompt(qtbot):
    assert (_button_name_from_enum(QMessageBox.Save) == 'save')
    assert (_button_enum_from_name('save') == QMessageBox.Save)
    box = _prompt('How are you doing?', buttons=['save', 'cancel', 'close'])
    qtbot.mouseClick(qtbot.buttons()[0], Qt.LeftButton)
    assert ('save' in str(box.clickedButton().text()).lower())

dataset/ETHPy150Open kwikteam/phy/phy/gui/tests/test_qt.py test_prompt/VarMisuse@55/91 `box`->`qtbot`