def test_tempdir(self):
    dirname = None
    with utils.tempdir() as tempdir:
        self.assertTrue(os.path.isdir(tempdir))
        dirname = tempdir
    self.assertFalse(os.path.exists(dirname))
def test_tempdir(self):
    dirname = None
    with utils.tempdir() as tempdir:
        self.assertTrue(os.path.isdir(tempdir))
        dirname = tempdir
    self.assertFalse(os.path.exists(dirname))