U
    
W[9  ã                   @   s`   d Z ddlmZm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.
é    )ÚdivisionÚabsolute_import)Ú_appdirsN)Úunittestc                   @   s(   e Zd ZdZesdZdd„ Zdd„ ZdS )ÚAppdirsTestsz 
    Tests for L{_appdirs}.
    zappdirs package not installedc                 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getDataDirectoryZ
assertTrueÚendswith©ÚselfÚres© r   úB/usr/lib/python3/dist-packages/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_manualN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úskipr   r   r   r   r   r   r      s
   
r   )r   Z
__future__r   r   Ztwisted.pythonr   ÚImportErrorZtwisted.trialr   ZTestCaser   r   r   r   r   Ú<module>   s   
