def testConvertDoneToOrg(self): target = ["*** DONE This is a task done"] source = ["***<en-todo checked=\"true\"/> This is a task done"] result = orgOutput.convertDoneToOrg(source) self.assertEqual(target, result)
def ever2org(pSourceFile, pDestinationFile): vCache = cacheFile(pSourceFile) if isOrgModeFile(vCache): vCache = removeEmptyLines(vCache) vCache = orgOutput.completeOrgTableNotation(vCache) vCache = unescapeCharsFile(vCache, fEscapeChars) vCache = orgOutput.convertToOrgLinkNotation(pSource=vCache) vCache = orgOutput.convertDoneToOrg(pCache = vCache) vCache = orgOutput.convertTodoToOrg(pCache = vCache) writeFile(pDestinationFile, vCache)