Your IP : 216.73.216.85
���]�F � @ s� d d l Z d d l Z d d l m Z Gd d � d e j � Z Gd d � d � Z Gd d � d � Z Gd d
� d
e j � Z e d k r� e j � d S)� N)�Templatec @ s� e Z d Z d d � Z d d � Z d d � Z d d � Z d d
� Z d d � Z d
d � Z d d � Z
d d � Z d d � Z d d � Z
d d � Z d d � Z d d � Z d S)�
ModuleTestc C s� | j t j d � | j t j d � | j t j d � | j t j t j t j � | j t j d � | j t j t j d � | j t j d � | j t j d � | j t j
t j t j t j t j t j � d S)Nz
�abcdefghijklmnopqrstuvwxyz�ABCDEFGHIJKLMNOPQRSTUVWXYZ�
0123456789ZabcdefABCDEF�01234567z !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)�assertEqual�string�
whitespace�ascii_lowercase�ascii_uppercase�
ascii_letters�digits� hexdigits� octdigits�punctuation� printable)�self� r �0/opt/alt/python35/lib64/python3.5/test_string.py�
test_attrs s zModuleTest.test_attrsc C s� | j t j d � d � | j t j d � d � | j t j d � d � | j t j d � d � | j t j d d � d � | j t j d � d
� | j t j d � d � | j t j d
� d � | j 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 �capwords)r r r r �
test_capwords s zModuleTest.test_capwordsc C s� t j � } | j | j d � d � | j | j d d � d � | j | j d d d � d � | j t | j � | j t t j j � 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"