def test_abort(question, qtbot):
 with qtbot.waitSignals([question.aborted, question.completed], order='strict'):
  question.abort()
 assert question.is_aborted

def test_abort ( question , qtbot ) : with qtbot . waitSignals ( [ question . aborted , question . completed ] , order = 'strict' ) : question . abort ( ) assert question . is_aborted
test question .