#NEWLINE# def setup_method( self , method ) : #NEWLINE# #INDENT# self . engine = sa . create_engine ( 'sqlite:///:memory:' ) #NEWLINE# self . base = sa . ext . declarative . declarative_base ( ) #NEWLINE# self . create_models ( ) #NEWLINE# self . base . metadata . create_all ( self . engine ) #NEWLINE# Session = sa . orm . session . sessionmaker ( bind = method . engine ) #NEWLINE# self . session = Session ( )