#NEWLINE# def test_create_from_template( self ) : #NEWLINE# #INDENT# 'Test database creation from template' #NEWLINE# self . dbname1 = dbutil . random_name ( 'test_create_from_template_db' ) #NEWLINE# dbutil . TESTSERVER . create ( self . dbname1 , template_db = self . TEST_TEMPLATE_DB ) #NEWLINE# maint_conn = dbutil . TESTSERVER . connect ( self . MAINTENANCE_DB , superuser = True ) #NEWLINE# try : #NEWLINE# #INDENT# maint_conn = dbutil . MaintenanceWrapper ( maint_conn ) #NEWLINE# self . assertTrue ( maint_conn . exists ( maint_conn . dbname1 ) , 'New database does not seem to be there.' ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# maint_conn . close ( )