def METHOD_NAME():
    # will fail if any warning is emitted
    with warnings.catch_warnings():
        warnings.simplefilter("error")
        job = define_the_job()
        assert job.execute_in_process().success