#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# conn_settings = settings . DATABASES [ DEFAULT_DB_ALIAS ] #NEWLINE# self . conn2 = backend . DatabaseWrapper ( { #NEWLINE# #INDENT# 'HOST' : conn_settings [ 'HOST' ] , #NEWLINE# 'NAME' : conn_settings [ 'NAME' ] , #NEWLINE# 'OPTIONS' : conn_settings [ 'OPTIONS' ] , #NEWLINE# 'PASSWORD' : conn_settings [ 'PASSWORD' ] , #NEWLINE# 'PORT' : conn_settings [ 'PORT' ] , #NEWLINE# 'USER' : conn_settings [ 'USER' ] , #NEWLINE# 'TIME_ZONE' : settings . TIME_ZONE , #NEWLINE# #UNINDENT# } ) #NEWLINE# transaction . enter_transaction_management ( ) #NEWLINE# transaction . managed ( True ) #NEWLINE# self . conn2 . _enter_transaction_management ( True )