U
    Acj3  ć                   @   sP   d Z zddlmZ W n ek
r,   dZY nX ddlmZ G dd dejZdS )z'
Tests for the data directory support.
é    )Ś_appdirsN)Śunittestc                   @   s4   e Zd ZdZesdZddddZddddZdS )	ŚAppdirsTestsz 
    Tests for L{_appdirs}.
    zappdirs package not installedN)Śreturnc                 C   s   t  ” }|  | d”” dS )z“
        Calling L{appdirs.getDataDirectory} will return a user data directory
        in the system convention, with the module of the caller as the
        subdirectory.
        z twisted.python.test.test_appdirsN©r   ZgetDataDirectoryŚ
assertTrueŚendswith©ŚselfŚres© r   śD/tmp/pip-unpacked-wheel-nrvc_22y/twisted/python/test/test_appdirs.pyŚtest_moduleName   s    zAppdirsTests.test_moduleNamec                 C   s   t  d”}|  | d”” dS )z
        Calling L{appdirs.getDataDirectory} with a C{moduleName} argument will
        make a data directory with that name instead.
        zfoo.bar.bazNr   r	   r   r   r   Śtest_manual"   s    
zAppdirsTests.test_manual)Ś__name__Ś
__module__Ś__qualname__Ś__doc__r   Śskipr   r   r   r   r   r   r      s
   	r   )r   Ztwisted.pythonr   ŚImportErrorZtwisted.trialr   ZTestCaser   r   r   r   r   Ś<module>   s   
