def standard_registration(t):

    # A GET to the template endpoint is made to find the extra_vars to combine
    t.register_json('/job_templates/1/', {
        'id': 1,
        'name': 'frobnicate',
        'related': {'launch': '/job_templates/1/launch/'},
    })
    register_get(t)

    # A GET to the launch endpoint is needed to check if
    # a password prompt is needed
    t.register_json('/job_templates/1/launch/', {}, method='GET')

    # A POST to the launch endpoint will launch a job, and we
    # expect that the tower server will return the job number
    t.register_json('/job_templates/1/launch/', {'job': 42}, method='POST')
Testing FileAttachmentReviewUI sandboxes __init__
dataset/ETHPy150Open ansible/tower-cli/tests/test_resources_job.py/standard_registration--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/ui/tests.py/SandboxTests.test_init_review_ui