#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . migration_config = { #NEWLINE# #INDENT# 'alembic_ini_path' : '.' , #NEWLINE# 'migrate_repo_path' : '.' , #NEWLINE# 'db_url' : 'sqlite://' , #NEWLINE# #UNINDENT# } #NEWLINE# engine = sqlalchemy . create_engine ( self . migration_config [ 'db_url' ] ) #NEWLINE# self . migration_manager = manager . MigrationManager ( self . migration_config , engine ) #NEWLINE# self . first_ext = MockWithCmp ( ) #NEWLINE# self . first_ext . obj . order = 1 #NEWLINE# self . first_ext . obj . upgrade . return_value = 100 #NEWLINE# self . first_ext . obj . downgrade . return_value = 0 #NEWLINE# self . second_ext = MockWithCmp ( ) #NEWLINE# self . second_ext . obj . order = 2 #NEWLINE# self . second_ext . obj . upgrade . return_value = 200 #NEWLINE# self . second_ext . obj . downgrade . return_value = 100 #NEWLINE# self . migration_manager . _manager . extensions = [ self . first_ext , self . second_ext ] #NEWLINE# super ( TestMigrationMultipleExtensions , self ) . setUp ( )