def test_assert_results_contain_success_message_msg(capsys):
    msg_code = 'a message code'
    msg_human = 'human readable message'
    message = Message(msg_code, msg_human)
    expected_status = FAIL
    results = [(FAIL, message)]
    assert (assert_results_contain(results, expected_status, msg_code) == msg_human)
    captured = capsys.readouterr()
    assert (captured.out == f'''Test {expected_status} [{msg_code}]
''')
def test_assert_results_contain_success_message_msg(capsys):
    msg_code = 'a message code'
    msg_human = 'human readable message'
    message = Message(msg_code, msg_human)
    expected_status = FAIL
    results = [(FAIL, message)]
    assert (assert_results_contain(results, expected_status, msg_code) == msg_human)
    captured = capsys.readouterr()
    assert (captured.out == f'Test {expected_status} [{msg_code}]
')