def test_messages(self):
        self.login(app.config['USERNAME'], app.config['PASSWORD'])
        rv = self.app.post('/add', data=dict(
            title='<Hello>',
            text='<strong>HTML</strong> allowed here'
        ), follow_redirects=True)
        self.assertNotIn(b'No entries here so far', rv.data)
        self.assertIn(b'&lt;Hello&gt;', rv.data)
        self.assertIn(b'<strong>HTML</strong> allowed here', rv.data)
Open a file from database. 
dataset/ETHPy150Open Akagi201/learning-python/flask/flaskr-tdd/app-test.py/FlaskrTestCase.test_messages--crossover with--dataset/ETHPy150Open jschneier/django-storages/storages/backends/database.py/DatabaseStorage._open