def test_created(self):
        """
        The directory part of the path name returned by C{mktemp} exists.
        """
        name = self.mktemp()
        dirname = os.path.dirname(name)
        self.assertTrue(os.path.exists(dirname))
        self.assertFalse(os.path.exists(name))

        The directory part of the path name returned by C{mktemp} exists.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_util.py