def test_message_recording(client):
    """Check if adding messages works"""
    register_and_login(client, 'foo', 'default')
    add_message(client, 'test message 1')
    add_message(client, '<test message 2>')
    rv = client.get('/')
    assert rv.data in b'test message 1'
    assert b'&lt;test message 2&gt;' in rv.data
dataset/ETHPy150Open pallets/flask/examples/minitwit/test_minitwit.py/test_message_recording/swapped operands of `in`