#NEWLINE# def __init__( self , version , database = 'main' ) : #NEWLINE# #INDENT# "Create a database fixture.\n\n        :param version: Max version to sync to (or None for current)\n        :param database: The type of database, 'main' or 'api'\n        " #NEWLINE# super ( DatabaseAtVersion , self ) . __init__ ( ) #NEWLINE# self . database = database #NEWLINE# self . version = version #NEWLINE# if ( database == 'main' ) : #NEWLINE# #INDENT# self . get_engine = session . get_engine #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( version == 'api' ) : #NEWLINE# #INDENT# self . get_engine = session . get_api_engine