'Rolls back all pending_transactions during this dry run.'

def rollback_transactions_dry_run(self):

    if (not self.dry_run):
        return
    while (self.pending_transactions > 0):
        self.rollback_transaction()
    if transaction.is_dirty(using=self.db_alias):
        transaction.leave_transaction_management(using=self.db_alias)
