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