def test_name(self):
        """
        The path name returned by C{mktemp} is directly beneath a directory
        which identifies the test method which created the name.
        """
        name = self.mktemp()
        dirs = os.path.dirname(name).split(os.sep)[:-1]
        self.assertEqual(
            dirs, ['twisted.trial.test.test_util', 'MktempTests', 'test_name'])

        The path name returned by C{mktemp} is directly beneath a directory
        which identifies the test method which created the name.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_util.py