def test_assert_results_contain_ignore_error_true(capsys):
    msg_code = 'a message code'
    ignore = 'an error'
    expected_status = PASS
    results = [(ERROR, ''), (FAIL, '')]
    assert (assert_results_contain(results, expected_status, msg_code, ignore_error=ignore) is None)
    captured = capsys.readouterr()
    assert (captured.out == f'''Test {expected_status} [{msg_code}]
{ignore}
''')
def test_assert_results_contain_ignore_error_true(capsys):
    msg_code = 'a message code'
    ignore = 'an error'
    expected_status = PASS
    results = [(ERROR, ), (FAIL, )]
    assert (assert_results_contain(results, expected_status, msg_code, ignore_error=ignore) is None)
    captured = capsys.readouterr()
    assert (captured.out == f'Test {expected_status} [{msg_code}]
{ignore}
')