예제 #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"
예제 #2
0
def fails(state, msg=""):
    cl.fail(state, msg)
예제 #3
0
def test_extend_fail(state):
    with pytest.raises(TF):
        cl.extend(state, childx, lambda state: cl.fail(state))