0x1949 Team - FAZEMRX - MANAGER
Edit File: test_version.cpython-310.pyc
o ��bAE � @ sd d Z ddlmZmZ ddlZddlZddlmZmZ ddlm Z m Z ddlmZ G dd� de�Z dS ) z Tests for L{incremental}. � )�division�absolute_importN)�getVersionString�IncomparableVersions)�Version�_inf)�TestCasec @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5d6� Zd7d8� Zd9d:� Zd;d<� Z d=d>� Z!d?d@� Z"dAdB� Z#dCdD� Z$dEdF� Z%dGdH� Z&dIdJ� Z'dKdL� Z(dMdN� Z)dOdP� Z*dQdR� Z+dSdT� Z,dUdV� Z-dWdX� Z.dYdZ� Z/d[d\� Z0d]d^� Z1d_d`� Z2dadb� Z3dcdd� Z4dedf� Z5dgS )h� VersionsTestsc C s. t dddddddd�}| �|�� |�� � dS )zE The local version is the same as the short version. �dummy� r � � ��release_candidate�post�devN)r �assertEqual�local�short)�self�va� r �@/usr/lib/python3/dist-packages/incremental/tests/test_version.py�test_localIsShort s zVersionsTests.test_localIsShortc C s� t dddd�}t dddd�}| �||k� | �||k � | �||k� | �||k� | �||k� | �|t dddd�k� | �||k� dS )zB Versions can be compared for equality and order. r r r N�r � assertTrue�r r �vbr r r �test_versionComparison � z$VersionsTests.test_versionComparisonc C s� t dddd�}t dddd�}| �||k� | �||k � | �||k� | �||k� | �||k� | �|t dddd�k� | �||k� dS )z= Version package names are case insensitive. r r r �DuMmYNr r r r r �%test_versionComparisonCaseInsensitive) r z3VersionsTests.test_versionComparisonCaseInsensitivec C sH t dddd�}t dddd�}| �||k� | �||k � | �||� dS )zI NEXT releases are always larger than numbered releases. �whatever�NEXTr r N�r r �assertFalse�assertNotEqualsr r r r �test_comparingNEXTReleases7 s z(VersionsTests.test_comparingNEXTReleasesc C sF | � t�� tdddddddd� W d � n1 sw Y | � t�� tdddddddd� W d � n1 s;w Y | � t�� tdddddddd� W d � n1 s[w Y | � t�� tdddddddd� W d � n1 s{w Y | � t�� tdddddddd� W d � dS 1 s�w Y dS )zR NEXT releases must always have the rest of the numbers set to 0. r"