<s> from odmtools . odmdata import SessionFactory <EOL> class TestSessionFactory : <EOL> def setup ( self ) : <EOL> self . connection_string = "<STR_LIT>" <EOL> self . session_factory = SessionFactory ( self . connection_string , echo = True ) <EOL> def test_create_session_factory ( self ) : <EOL> assert repr ( self . session_factory ) == "<STR_LIT>" % self . connection_string <EOL> assert self . session_factory . Session != None <EOL> def test_get_session ( self ) : <EOL> session = self . session_factory . get_session ( ) <EOL> assert '<STR_LIT>' in repr ( session ) </s>
