| Server IP : 43.129.54.214 / Your IP : 216.73.217.113 Web Server : nginx/1.24.0 System : Linux VM-4-108-ubuntu 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/local/qcloud/python/lib/python3.7/test/__pycache__/ |
Upload File : |
B
��f0O � @ sp d dl Z d dlZd dlmZ G dd� de j�ZG dd� d�ZG dd� d�ZG d d
� d
e j�Zedkrle � � dS )� N)�Templatec @ s| e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� ZdS )�
ModuleTestc C s� | � tjd� | � tjd� | � tjd� | � tjtjtj � | � tjd� | � tjtjd � | � tjd� | � tj d� | � tj
tjtj tj tj tj � d S )Nz
ZabcdefghijklmnopqrstuvwxyzZABCDEFGHIJKLMNOPQRSTUVWXYZ�
0123456789ZabcdefABCDEFZ01234567z !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)�assertEqual�stringZ
whitespaceZascii_lowercaseZascii_uppercase�
ascii_letters�digitsZ hexdigitsZ octdigitsZpunctuationZ printable)�self� r
�:/usr/local/qcloud/python/lib/python3.7/test/test_string.py�
test_attrs s zModuleTest.test_attrsc C s� | � t�d�d� | � t�d�d� | � t�d�d� | � t�d�d� | � t�dd�d� | � t�d �d
� | � t�d�d� | � t�d
�d� | � t�d
d�d� d S )Nzabc def ghizAbc Def Ghizabc def
ghizabc def
ghizABC DEF GHIzABC-DEF-GHI�-zAbc-Def-GhizABC-def DEF-ghi GHIzAbc-def Def-ghi Ghiz aBc DeF zAbc Defz aBc DeF � z Abc Def )r r Zcapwords)r r
r
r �
test_capwords s zModuleTest.test_capwordsc C sf t �� }| �|�d�d� | �|�dd�d� | �|�ddd�d� | �t|j� | �tt jj� d S )N�foozfoo{0}�barZfoobarz
foo{1}{0}-{1}� z foo6bar-6)r � Formatterr �format�assertRaises� TypeError)r �fmtr
r
r �test_basic_formatter"