Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_string.cpython-311.opt-1.pyc |
�
�KeoW � �� � d dl Z d dlZd dlmZ G d� de j � � Z G d� d� � Z G d� d� � Z G d � d
e j � � Zedk r e j � � dS dS )� N)�Templatec �b � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� ZdS )�
ModuleTestc �
� | � t j d� � | � t j d� � | � t j d� � | � t j t j t j z � � | � t j d� � | � t j t j dz � � | � t j d� � | � t j d� � | � t j
t j t j z t j z t j z t j z � � d S )Nz
�abcdefghijklmnopqrstuvwxyz�ABCDEFGHIJKLMNOPQRSTUVWXYZ�
0123456789�abcdefABCDEF�01234567z !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)�assertEqual�string�
whitespace�ascii_lowercase�ascii_uppercase�
ascii_letters�digits� hexdigits� octdigits�punctuation� printable��selfs �:/usr/local/apps/python3/lib/python3.11/test/test_string.py�
test_attrszModuleTest.test_attrs s? � �
����*�,=�>�>�>�����/�1M�N�N�N�����/�1M�N�N�N�����-�v�/E��H^�/^�_�_�_�������5�5�5�����)�6�=�>�+I�J�J�J�����)�:�6�6�6�����+�-Q�R�R�R�����)�6�=�6�;Q�+Q�TZ�Tj�+j�ms�m�+� CI� CT� ,T� U� U� U� U� U� c �� � | � t j d� � d� � | � t j d� � d� � | � t j d� � d� � | � t j d� � d� � | � t j dd� � d� � | � t j d � � d
� � | � t j d� � d� � | � t j d
� � d� � | � t j 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
�capwordsr s r �
test_capwordszModuleTest.test_capwords s0 � �������7�7��G�G�G�������9�9�=�I�I�I������)=�>�>�
�N�N�N�������7�7��G�G�G��������<�<�m�L�L�L������)>�?�?�AV�W�W�W������)9�:�:�I�F�F�F�������8�8�)�D�D�D��������>�>��O�O�O�O�Or c � � t j � � }| � |� d� � d� � | � |� dd� � d� � | � |� ddd� � d� � | � t
|j � � | � t
t j j � � d S )N�foozfoo{0}�bar�foobarz
foo{1}{0}-{1}� z foo6bar-6)r
� Formatterr �format�assertRaises� TypeError�r �fmts r �test_basic_formatterzModuleTest.test_basic_formatter"