def test_message_recording(client):
 register_and_login(client, 'foo', 'default')
 add_message(client, 'test message 1')
 add_message(client, '<test message 2>')
 rv = client.get('/')
 assert ('test message 1' in rv.data)
 assert ('&lt;test message 2&gt;' in rv.data)

def test_message_recording ( client ) : register_and_login ( client , 'foo' , 'default' ) add_message ( client , 'test message 1' ) add_message ( client , '<test message 2>' ) rv = client . get ( '/' ) assert ( 'test message 1' in rv . data ) assert ( '&lt;test message 2&gt;' in rv . data )
check if adding messages works .