Your IP : 216.73.216.85
3
� f � @ sX d dl Z d dlmZ d dlZG dd� dej�ZG dd� dejej�ZedkrTej � dS )� N)�test_genericpathc @ sD e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dS )�MacPathTestCasec C s | j tjd�d� d S )Nzxx:yy)�assertEqual�macpath�abspath)�self� r �6/opt/alt/python36/lib64/python3.6/test/test_macpath.py�test_abspath s zMacPathTestCase.test_abspathc C s� t j}| 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�� d S )Nzxx:yyzxx:yy:zxx:Zfooz:fooz:foo:barz :foo:bar:s xx:yys xx:yy:s xx:s foos :foos :foo:bars :foo:bar:)r �isabsZ
assertTrueZassertFalse)r r r r r �
test_isabs s zMacPathTestCase.test_isabsc C s� t j}| j|d�d� | j|d�d� | j|d�d� | j|d�d� | j|d
�d� | j|d
�d� | j|d�d� | j|d�d� d S )Nzfoo:bar�foo:�barzconky:mountpoint:foo:bar�conky:mountpoint:foo�:� z:conky:mountpoint:�:conky:mountpoints foo:bar� foo:� bars conky:mountpoint:foo:bar� conky:mountpoint:foo� :� s :conky:mountpoint:� :conky:mountpoint)r
r )r r )r r )r r )r r )r r )r r )r r )r �splitr )r r r r r �
test_split s
zMacPathTestCase.test_splitc C sv t j}| 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|dd
�d� | j|dd�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$� d S )%N�a�bz:a:bz:az:a:z:a::z:a::bz::br za:r za:b�cza:b:cz:cz:bz:a:b:czb:� a� bs :a:bs :as :a:s :a::s :a::bs ::br s a:r s a:b� cs a:b:cs :cs :bs :a:b:cs b:)r �joinr )r r! r r r � test_join1 sF zMacPathTestCase.test_joinc C s� t j}| 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"� d S )#Nz:foo.ext�:foo�.extzfoo:foo.ext�foo:foor �foo.ext:foo� :foo.ext:zfoo.bar.ext�foo.bars :foo.ext� :foo� .exts foo:foo.ext� foo:foor � foo.ext:foo� :foo.ext:s foo.bar.ext� foo.bar)r# r$ )r% r$ )r$ r )r&