def test_assert_results_contain_bare_string(capsys):
    msg_code = 'a message code'
    bare_str = 'just a string'
    reason = 'just because...'
    expected_status = PASS
    results = [(WARN, bare_str), (INFO, bare_str)]
    with pytest.raises(Exception) as err:
        assert_results_contain(results, expected_status, msg_code, reason)
    assert (f'(Bare string: {bare_str!r})' in str(err.value))
    captured = capsys.readouterr()
    assert (captured.out == f'''Test {expected_status} {reason}
''')
def test_assert_results_contain_bare_string(capsys):
    msg_code = 'a message code'
    bare_str = 'just a string'
    reason = 'just because...'
    expected_status = PASS
    results = [(WARN, bare_str), (INFO, bare_str)]
    with pytest.raises(Exception) as err:
        assert_results_contain(results, expected_status, msg_code, reason)
    assert (f'(Bare string: {bare_str!r})' in str(err.value))
    captured = capsys.readouterr()
    assert (captured.out == f'Test {expected_status} {reason}
')