%PDF- %PDF-
Direktori : /lib/python3/dist-packages/incremental/tests/__pycache__/ |
Current File : //lib/python3/dist-packages/incremental/tests/__pycache__/test_version.cpython-312.pyc |
� ؒ�eAH � �z � d Z ddlmZmZ ddlZddlZddlZddlZddlmZm Z ddlm Z mZ ddlm Z G d� de � Zy) z Tests for L{incremental}. � )�division�absolute_importN)�getVersionString�IncomparableVersions)�Version�_inf)�TestCasec � � e Zd Zd� Zd� Z ej ej dk d� d� � Z d� Z d� Zd� Zd � Z d � Zd� Zd� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d� Z"d� Z#d � Z$d!� Z%d"� Z&d#� Z'd$� Z(d%� Z)d&� Z*d'� Z+d(� Z,d)� Z-d*� Z.d+� Z/d,� Z0d-� Z1d.� Z2d/� Z3d0� Z4d1� Z5d2� Z6d3� Z7d4� Z8d5� Z9d6� Z:y7)8� VersionsTestsc � � t ddddddd�� }| j |j � |j � � y)zE The local version is the same as the short version. �dummy� r � � ��release_candidate�post�devN)r �assertEqual�local�short)�self�vas �@/usr/lib/python3/dist-packages/incremental/tests/test_version.py�test_localIsShortzVersionsTests.test_localIsShort s6 � � �W�a��A���� J���������R�X�X�Z�0� c �l � t dddd� }t dddd� }| j ||kD � | j ||k � | j ||k\ � | j ||k � | j ||k7 � | j |t dddd� k( � | j ||k( � y)zB Versions can be compared for equality and order. r r r N�r � assertTrue�r r �vbs r �test_versionComparisonz$VersionsTests.test_versionComparison � � � �W�a��A� &�� �W�a��A� &������R�� �����R�� �����b��!�����b��!�����b��!�����g�g�q�!�Q�7�7�8�����b��!r )r zComparisons do not raise on py2c � � t dddd� }t � }| j t � 5 ||kD ddd� | j t � 5 ||k ddd� | j t � 5 ||k\ ddd� | j t � 5 ||k ddd� | j ||k( � | j ||k7 � y# 1 sw Y ��xY w# 1 sw Y ��xY w# 1 sw Y �mxY w# 1 sw Y �VxY w)z= Versions can be compared with non-versions. r r r N)r �object�assertRaises� TypeError�assertFalser )r �v�os r � test_versionComparisonNonVersionz.VersionsTests.test_versionComparisonNonVersion+ s� � � �G�Q��1�%���H�� � � �y� )� � ��E� � � � �y� )� � ��E� � � � �y� )� � ��F� � � � �y� )� � ��F� � ����a�� �����Q��� � �� � �� � �� � �s/ �C�C�4C&�C2�C�C#�&C/�2C;c �l � t dddd� }t dddd� }| j ||kD � | j ||k � | j ||k\ � | j ||k � | j ||k7 � | j |t dddd� k( � | j ||k( � y)z= Version package names are case insensitive. r r r �DuMmYNr r s r �%test_versionComparisonCaseInsensitivez3VersionsTests.test_versionComparisonCaseInsensitiveB r# r c � � t dddd� }t dddd� }| j ||kD � | j ||k � | j ||� y)zI NEXT releases are always larger than numbered releases. �whatever�NEXTr r N�r r r( �assertNotEqualsr s r �test_comparingNEXTReleasesz(VersionsTests.test_comparingNEXTReleasesP sV � � �Z���A� .�� �Z��A�q� )������R�� �����b��!����R��$r c �\ � | j t � 5 t ddddddd�� ddd� | j t � 5 t ddddddd�� ddd� | j t � 5 t ddddddd�� ddd� | j t � 5 t ddddddd�� ddd� | j t � 5 t ddddddd�� ddd� y# 1 sw Y ��xY w# 1 sw Y ��xY w# 1 sw Y ��xY w# 1 sw Y �^xY w# 1 sw Y yxY w)zR NEXT releases must always have the rest of the numbers set to 0. r0 r1 r r r N�r&