def testConvertDoneToEvernote(self): source = ["*** DONE This is a task done"] target = ["***<en-todo checked=\"true\"/> This is a task done"] result = enmlOutput.convertDoneToEvernote(source) self.assertEqual(target, result)
def org2ever(pSourceFile, pDestinationFile): vCache = cacheFile(pSourceFile) if isOrgModeFile(vCache): vCache = enmlOutput.convertDoneToEvernote(pCache = vCache) vCache = enmlOutput.convertTodoToEvernote(pCache = vCache) vCache = enmlOutput.convertToEvernoteLinkNotation(pCache=vCache) vCache = escapeCharsFile(pSource=vCache, pChars=fEscapeChars) vCache = enmlOutput.translateOrgToHTMLTables(pCache = vCache) writeFile(pDestinationFile, vCache)