
    Vh3                     f    d Z 	 ddlmZ ddlmZ  G d dej                        Zy# e$ r dZY %w xY w)z'
Tests for the data directory support.
    )_appdirsN)unittestc                   (    e Zd ZdZesdZddZddZy)AppdirsTestsz 
    Tests for L{_appdirs}.
    zappdirs package not installedNc                 l    t        j                         }| j                  |j                  d             y)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ress     P/home/dcms/DCMS/lib/python3.12/site-packages/twisted/python/test/test_appdirs.pytest_moduleNamezAppdirsTests.test_moduleName   s(     '')%GHI    c                 n    t        j                  d      }| j                  |j                  d             y)z
        Calling L{appdirs.getDataDirectory} with a C{moduleName} argument will
        make a data directory with that name instead.
        zfoo.bar.bazNr   r   s     r   test_manualzAppdirsTests.test_manual"   s)    
 ''6]34r   )returnN)__name__
__module____qualname____doc__r   skipr   r    r   r   r   r      s     .J5r   r   )r   twisted.pythonr   ImportErrortwisted.trialr   TestCaser   r   r   r   <module>r      s?   
' #58$$ 5  Hs   & 00