def test_messages(client):
 login(client, flaskr.app.config['USERNAME'], flaskr.app.config['PASSWORD'])
 rv = client.post('/add', data=dict(title='<Hello>', text='<strong>HTML</strong> allowed here'), follow_redirects=True)
 assert ('No entries here so far' not in rv.data)
 assert ('&lt;Hello&gt;' in rv.data)
 assert ('<strong>HTML</strong> allowed here' in rv.data)

def test_messages ( client ) : login ( client , flaskr . app . config [ 'USERNAME' ] , flaskr . app . config [ 'PASSWORD' ] ) rv = client . post ( '/add' , data = dict ( title = '<Hello>' , text = '<strong>HTML</strong> allowed here' ) , follow_redirects = True ) assert ( 'No entries here so far' not in rv . data ) assert ( '&lt;Hello&gt;' in rv . data ) assert ( '<strong>HTML</strong> allowed here' in rv . data )
test that messages work .