'Destroy a test database, prompting the user for confirmation if the
database already exists.'

def destroy_test_db(self, old_database_name, verbosity=1):

    self.connection.close()
    test_database_name = self.connection.settings_dict['NAME']
    if (verbosity >= 1):
        test_db_repr = ''
        if (verbosity >= 2):
            test_db_repr = ("    ('%s')" % test_database_name)
        print ("Destroying    test    database    for    alias    '%s'%s..." % (self.connection.alias, test_db_repr))
    settings_dict = self.connection.settings_dict.copy()
    settings_dict['NAME'] = old_database_name
    backend = load_backend(settings_dict['ENGINE'])
    new_connection = backend.DatabaseWrapper(settings_dict, alias='__destroy_test_db__', allow_thread_sharing=False)
    new_connection.creation._destroy_test_db(test_database_name, verbosity)
