U
     T‚g3  ã                   @   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-1_7di8ic/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   
