def test_repr(self):
        from alchemist import db

        config = {'default': 'sqlite:///:memory:'}
        with settings(self.app, DATABASES=config), self.app.app_context():
            text = '<Session(bind=%r)>' % db.engine['default']
            assert repr(db.session) == text
dataset/ETHPy150Open concordusapps/alchemist/alchemist/tests/test_db.py/TestSession.test_repr/original