| Server IP : 118.27.122.248 / Your IP : 216.73.216.240 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3 � �^�� � @ s� d dl mZ d dlmZmZmZmZ d dlZd dlZd dl Z dZ dZdZG dd� d�Z G d d � d eje �ZG dd� deje �ZG d d� deje �ZG dd� dej�ZG dd� dej�Zdd� Zedkr�ee j�dkr�eje jd � e� dS )� )�support)� bigmemtest�_1G�_2G�_4GN� � � c @ s< e Zd Zdd� Zeed dd�dd� �Zeedd�d d � �Zeedd�dd� �Zeed dd�d d� �Z eedd�dd� �Z eedd�dd� �Zeedd�dd� �Zeedd�dd� �Z eedd�dd� �Zeedd�dd� �Zeedd�dd� �Zeedd�dd� �Zeedd�dd � �Zeedd�d!d"� �Zeed dd�d#d$� �Zeed dd�d%d&� �Zeed dd�d'd(� �Zeed dd�d)d*� �Zeedd�d+d,� �Zeedd�d-d.� �Zeed dd�d/d0� �Zeed dd�d1d2� �Zeed3d�d4d5� �Zeed6 de d7 d�d8d9� �Zeed3d�d:d;� �Zeedd�d<d=� �Z eedd�d>d?� �Z!d@dA� Z"dBdC� Z#eedd�dDdE� �Z$eed6 dd�dFdG� �Z%eedH dd�dIdJ� �Z&ee'd dKd�dLdM� �Z(ee'd dKd�dNdO� �Z)eedH dd�dPdQ� �Z*eedd�dRdS� �Z+eed dd�dTdU� �Z,eed dd�dVdW� �Z-dXS )Y�BaseStrTestc C s` | j }| j d�}|d�| | }|j� }| j|t|� d � |j� � | j|j|d��|� d S )Nz abc def ghi�-)�from_latin1� capitalize�assertEqual�len�lstrip)�self�size�_�SUBSTR�sZcaps� r �0/opt/alt/python36/lib64/python3.6/test_bigmem.py�_test_capitalizeG s zBaseStrTest._test_capitalize� r )r �memusec C s~ | j d�}|j|�}| jt|�|� t|�t|� d }}t|�d rP|d7 }| j||| � |� | j|j� |j� � d S )Nz abc def ghir r )r �centerr r �strip)r r r r ZlpadsizeZrpadsizer r r �test_centerP s zBaseStrTest.test_centerr c C s� | j }|d�}|d�| | }| j|j|d��|� ||d�7 }| j|j|d��|d � | j|j|d��d� | j|j|d��d� | j|j|d��d� d S ) Nz abc def ghi�.r � � �i�jr )r r �count)r r r r r r r r � test_count[ s zBaseStrTest.test_countc C s� | j }|d�}|d�| | }| j|j|�� | j|j|�� |d�| }| j|j|�� | j|j|d�| �� | j|j|�� d S )Nz abc def ghir z...�a)r � assertTrue�endswith�assertFalse)r r r r r �s2r r r � test_endswithg s zBaseStrTest.test_endswithc C s� | j }|d�| }d}| j|j� |k� ~t||�\}}|d�| }|j|�}| jt|�|| � | jt|j|d���d� d S )Nr � z r r )r r&