@pytest.mark.parametrize('cmd', [':message-error test', ':jseval console.log("[FAIL] test");'])
def test_quteproc_error_message(qtbot, quteproc, cmd, request_mock):
 with qtbot.waitSignal(quteproc.got_error):
  quteproc.send_cmd(cmd)
 with pytest.raises(pytest.fail.Exception):
  quteproc.after_test()

@ pytest . mark . parametrize ( 'cmd' , [ ':message-error test' , ':jseval console.log("[FAIL] test");' ] ) def test_quteproc_error_message ( qtbot , quteproc , cmd , request_mock ) : with qtbot . waitSignal ( quteproc . got_error ) : quteproc . send_cmd ( cmd ) with pytest . raises ( pytest . fail . Exception ) : quteproc . after_test ( )
make sure the test fails with an unexpected error message .