Ejemplo n.º 1
0
def access_self():

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

    assert get_current_job() is not None
Ejemplo 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())