def test_ReaddingLogFolderAfterDeletion(self): config = Builder().setworkdirectory(self.workdirectory).build() samplepath = os.path.dirname(config.getlogpath("anyPath")) self.assertTrue(os.path.exists(samplepath)) config.deletelogfolder() self.assertFalse(os.path.exists(samplepath)) samplepath = os.path.dirname(config.getlogpath("anyPath")) self.assertTrue(os.path.exists(samplepath))