o
    ¯b3  ã                   @   sN   d Z zddlmZ W n ey   dZY nw ddlmZ G dd„ dejƒZdS )z'
Tests for the data directory support.
é    )Ú_appdirsN)Úunittestc                   @   s,   e Zd ZdZes
dZd	dd„Zd	dd„ZdS )
ÚAppdirsTestsz 
    Tests for L{_appdirs}.
    zappdirs package not installedÚreturnNc                 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   ÚgetDataDirectoryÚ
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_manual)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úskipr   r   r   r   r   r   r      s    
	r   )r   Útwisted.pythonr   ÚImportErrorÚtwisted.trialr   ÚTestCaser   r   r   r   r   Ú<module>   s   ÿ