def teardown_databases(old_config, verbosity, parallel=0, keepdb=False):
 for (connection, old_name, destroy) in old_config:
  if destroy:
   if (parallel > 1):
    for index in range(parallel):
     connection.creation.destroy_test_db(number=(index + 1), verbosity=verbosity, keepdb=keepdb)
   connection.creation.destroy_test_db(old_name, verbosity, keepdb)

def teardown_databases ( old_config , verbosity , parallel = 0 , keepdb = False ) : for ( connection , old_name , destroy ) in old_config : if destroy : if ( parallel > 1 ) : for index in range ( parallel ) : connection . creation . destroy_test_db ( number = ( index + 1 ) , verbosity = verbosity , keepdb = keepdb ) connection . creation . destroy_test_db ( old_name , verbosity , keepdb )
destroy all the non-mirror databases .