| Server IP : 138.197.176.125 / Your IP : 216.73.216.38 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Upload File : |
U
W[� � @ s� d Z ddlmZmZ ddlZddlmZ ddlmZ ddl
mZ ddlm
Z
mZ G dd � d e�ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZdS )z&
Tests for L{twisted.python.runtime}.
� )�division�absolute_importN)�namedModule)�suppress)�SynchronousTestCase)�Platform�shortPythonVersionc @ s e Zd ZdZdd� ZdS )�PythonVersionTestsz.
Tests the shortPythonVersion method.
c C s8 t � �d�}td�D ]}| �t|| �tj| � qdS )zE
Verify if the Python version is returned correctly.
�.� N)r �split�range�assertEqual�int�sys�version_info)�selfZver�i� r �B/usr/lib/python3/dist-packages/twisted/python/test/test_runtime.py�test_shortPythonVersion s z*PythonVersionTests.test_shortPythonVersionN)�__name__�
__module__�__qualname__�__doc__r r r r r r s r c @ s\ e Zd ZdZdZdd� Zdd� Zdd� Zd d
� Zdd� Z e
eed
�ge _dd� Z
dd� ZdS )�
PlatformTestsz8
Tests for the default L{Platform} initializer.
zgtwisted.python.runtime.Platform.isWinNT was deprecated in Twisted 13.0. Use Platform.isWindows instead.c C s t � }| �|�� � dS )z�
L{Platform.isKnown} returns a boolean indicating whether this is one of
the L{runtime.knownPlatforms}.
N)r �
assertTrueZisKnown�r �platformr r r �test_isKnown+ s zPlatformTests.test_isKnownc C s<