Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/test/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/test/__pycache__/test_macpath.cpython-35.opt-1.pyc



��Yf%�@s�ddlZddlmZmZddlZGdd�dej�ZGdd�dejej�Ze	dkr|ej
�dS)�N)�support�test_genericpathc@sdeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�MacPathTestCasecCs|jtjd�d�dS)Nzxx:yy)�assertEqual�macpath�abspath)�self�r	�6/opt/alt/python35/lib64/python3.5/test/test_macpath.py�test_abspathszMacPathTestCase.test_abspathcCstj}|j|d��|j|d��|j|d��|j|d��|j|d��|j|d��|j|d��|j|d��|j|d	��|j|d
��|j|d��|j|d��|j|d
��|j|d��dS)Nzxx:yyzxx:yy:zxx:Zfooz:fooz:foo:barz	:foo:bar:sxx:yysxx:yy:sxx:sfoos:foos:foo:bars	:foo:bar:)r�isabsZ
assertTrueZassertFalse)rrr	r	r
�
test_isabss	zMacPathTestCase.test_isabscCs�tj}|j|d�d�|j|d�d�|j|d�d�|j|d�d�|j|d
�d�|j|d
�d�|j|d�d�|j|d�d�dS)Nzfoo:bar�foo:�barzconky:mountpoint:foo:bar�conky:mountpoint:foo�:�z:conky:mountpoint:�:conky:mountpointsfoo:bar�foo:�barsconky:mountpoint:foo:bar�conky:mountpoint:foo�:�s:conky:mountpoint:�:conky:mountpoint)rr)rr)rr)rr)rr)rr)rr)rr)r�splitr)rrr	r	r
�
test_splits	zMacPathTestCase.test_splitcCsktj}|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd	�d�|j|d
d	�d
�|j|dd�d�|j|d
d�d
�|j|dd�d�|j|dd�d�|j|ddd�d�|j|dd
�d�|j|dd�d�|j|ddd�d�|j|dd�d�|j|d
d�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|dd�d�|j|ddd�d�|j|dd�d �|j|dd!�d �|j|dd"d!�d#�|j|dd$�d$�|j|dd$�d$�dS)%N�a�bz:a:bz:az:a:z:a::z:a::bz::brza:rza:b�cza:b:cz:cz:bz:a:b:czb:�a�bs:a:bs:as:a:s:a::s:a::bs::brsa:rsa:b�csa:b:cs:cs:bs:a:b:csb:)r�joinr)rr"r	r	r
�	test_join1sF	zMacPathTestCase.test_joincCsAtj}|j|d�d�|j|d�d�|j|d�d�|j|d�d�|j|d�d�|j|d�d�|j|d	�d�|j|d�d�|j|d�d�|j|d
�d�|j|d�d�|j|d�d �|j|d�d!�|j|d�d"�dS)#Nz:foo.ext�:foo�.extzfoo:foo.ext�foo:foor�foo.ext:foo�	:foo.ext:zfoo.bar.ext�foo.bars:foo.ext�:foo�.extsfoo:foo.ext�foo:foor�foo.ext:foo�	:foo.ext:sfoo.bar.ext�foo.bar)r$r%)r&r%)r%r)r'r)r(r)rr)r)r%)r*r+)r,r+)r+r)r-r)r.r)rr)r/r+)r�splitextr)rr0r	r	r
�
test_splitextWs	zMacPathTestCase.test_splitextcCs�tj}|j|d�d�|j|d�d�|j|d�d�|j|d�d�|j|d�d�|j|d�d�|j|d	�d�|j|d
�d�|j|d�d�|j|d�d�dS)
Nza:Tza:bFza:b:rrsa:sa:bsa:b:rr)r�ismountr)rr2r	r	r
�test_ismountis	zMacPathTestCase.test_ismountcCs�tj}|j|d�d�|j|d�d�|j|d�d�|j|d�d�|jtj|d�|jtj|d	�|j|d
�d
�|j|d�d�|j|d�d�|j|d
�d
�|j|d�d�|j|d�d�|j|d�d�|jtj|d�|jtj|d�|j|d�d�|j|d�d�|j|d�d
�dS)Nza:brz:aza:b::cza:cz	a:b:c:::dza:dza::bza:b:::crza:za:b:sa:brs:asa:b::csa:cs	a:b:c:::dsa:dsa::bsa:b:::crsa:sa:b:)r�normpathrZassertRaisesZ
norm_error)rr4r	r	r
�
test_normpathws&	zMacPathTestCase.test_normpathN)
�__name__�
__module__�__qualname__rr
rr#r1r3r5r	r	r	r
rs&rc@seZdZeZdZdS)�
MacCommonTestN)r6r7r8rZ
pathmoduleZtest_relpath_errorsr	r	r	r
r9�sr9�__main__)rZtestrrZunittestZTestCaserZ
CommonTestr9r6�mainr	r	r	r
�<module>s�