def test_mkstemp_keep_file(self): with mkstemp(remove=False) as path: self.assertTrue(osp.isfile(path)) self.assertTrue(osp.isfile(path))
def test_mkstemp(self): with mkstemp() as path: self.assertTrue(osp.isfile(path)) self.assertFalse(osp.isfile(path))