Esempio n. 1
0
def access_self():

    assert get_current_job() is not None
Esempio n. 2
0
def access_self():

    assert get_current_job() is not None
Esempio n. 3
0
def test_job_access_outside_job_fails():
    """The current job is accessible only within a job context."""

    assert not (yield from get_current_job())