def add_message(client, text):
    """Records a message"""
    rv = client.post('/add_message', data={'text': text},
                     follow_redirects=True)
    if text:
        assert b'Your message was recorded' in rv.data
    return rv
dataset/ETHPy150Open pallets/flask/examples/minitwit/test_minitwit.py/add_message/original