Esempio n. 1
0
def test_success_msg_fail():
    state = prepare_state("")
    child = success_msg(state, "NEW SUCCESS MSG")
    with pytest.raises(TF):
        fail(child)

    sct_payload = state.reporter.build_payload()
    assert sct_payload['message'] != "NEW SUCCESS MSG"
Esempio n. 2
0
def fails(state, msg=""):
    cl.fail(state, msg)
Esempio n. 3
0
def test_extend_fail(state):
    with pytest.raises(TF):
        cl.extend(state, childx, lambda state: cl.fail(state))