0x1949 Team - FAZEMRX - MANAGER
Edit File: test_persisted.cpython-310.pyc
o �b_4 � @ s� d dl Z d dlZd dlZd dlZd dlmZmZmZ d dlm Z d dl mZ G dd� de�ZG dd� dej �ZG d d � d ej �ZG dd� de�ZG d d� dee�ZG dd� de�ZG dd� dej�ZG dd� de�ZG dd� d�ZG dd� d�ZG dd� d�ZG dd� d�Zdd� Ze �ee� G dd � d �ZG d!d"� d"�Zd#d$� ZG d%d&� d&e�ZG d'd(� d(e�ZG d)d*� d*�Z G d+d,� d,�Z!G d-d.� d.e�Z"G d/d0� d0e�Z#eeegZ$dS )1� N)�aot�crefutil�styles)�unittest)�TestCasec @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S ) �VersionTestsc C sP G dd� d�a t�t � �}G dd� dtj�a t�|�}t�� |js&J d��d S )Nc @ � e Zd Zdd� ZdS )� NullVersionedc S � d| _ d S )Nr ��ok��self� r �=/usr/lib/python3/dist-packages/twisted/test/test_persisted.py�__init__ � zNullVersioned.__init__N��__name__� __module__�__qualname__r r r r r r � r c @ � e Zd ZdZdd� ZdS )r � c S r �Nr r r r r r �upgradeToVersion1 r zNullVersioned.upgradeToVersion1N)r r r �persistenceVersionr r r r r r s zinitial upgrade not run!)r �pickle�dumpsr � Versioned�loads� doUpgrader )r �pkcl�mnvr r r �test_nullVersionUpgrade s z$VersionTests.test_nullVersionUpgradec C s� G dd� dt j�at� }|js|jrJ d��t�|�}dt_t�|�}t � � |js.J d��|js5J d��t�|�}t�|�}t � � |jdksLJ d��|jdksUJ d��d S ) Nc @ s6 e Zd ZdZdgZdZdZdd� Zdd� Zdd � Z d S )�MyVersioned� �garbagedatar c S s d| _ dd� | _d S )N�xxxc S s dS )Nzcant persistr )�qr r r �<lambda>0 s z&MyVersioned.__init__.<locals>.<lambda>)�somedatar'