/usr/lib/python3/dist-packages/twisted/python/test
NameSizeModeActions
__pycache__/-0755rm
deprecatedattributes.py5710644editdlrm
modules_helpers.py16050644editdlrm
pullpipe.py12200644editdlrm
test_appdirs.py10810644editdlrm
test_components.py259740644editdlrm
test_constants.py381170644editdlrm
test_deprecate.py389300644editdlrm
test_dist3.py18580644editdlrm
test_fakepwd.py141070644editdlrm
test_htmlizer.py12660644editdlrm
test_inotify.py36390644editdlrm
test_release.py410460644editdlrm
test_runtime.py79260644editdlrm
test_sendmsg.py252330644editdlrm
test_setup.py124130644editdlrm
test_shellcomp.py218090644editdlrm
test_syslog.py49480644editdlrm
test_systemd.py64010644editdlrm
test_textattributes.py7120644editdlrm
test_tzhelper.py39840644editdlrm
test_url.py299280644editdlrm
test_urlpath.py103280644editdlrm
test_util.py364600644editdlrm
test_versions.py54000644editdlrm
test_zippath.py34740644editdlrm
test_zipstream.py123080644editdlrm
_deprecatetests.py.3only18140644editdlrm
__init__.py420644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/python/test/test_appdirs.py (1081B)
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for the data directory support. """ from __future__ import division, absolute_import try: from twisted.python import _appdirs except ImportError: _appdirs = None from twisted.trial import unittest class AppdirsTests(unittest.TestCase): """ Tests for L{_appdirs}. """ if not _appdirs: skip = "appdirs package not installed" def test_moduleName(self): """ Calling L{appdirs.getDataDirectory} will return a user data directory in the system convention, with the module of the caller as the subdirectory. """ res = _appdirs.getDataDirectory() self.assertTrue(res.endswith("twisted.python.test.test_appdirs")) def test_manual(self): """ Calling L{appdirs.getDataDirectory} with a C{moduleName} argument will make a data directory with that name instead. """ res = _appdirs.getDataDirectory("foo.bar.baz") self.assertTrue(res.endswith("foo.bar.baz"))