Пример #1
0
 def _content(note, content):
     """
     content of the note
     :param note: note object
     :param content: content string to make the main body of the note
     :return:
     """
     note.content = EvernoteMgr.set_header()
     note.content += sanitize(content)
     return note
Пример #2
0
 def _content(note, content):
     """
     content of the note
     :param note: note object
     :param content: content string to make the main body of the note
     :return:
     """
     note.content = EvernoteMgr.set_header()
     note.content += sanitize(content)
     return note
Пример #3
0
 def test_set_header(self):
     header = EvernoteMgr.set_header()
     self.assertTrue('DOCTYPE en-note SYSTEM "http://xml.evernote.'
                     'com/pub/enml2.dtd' in header)
Пример #4
0
 def test_set_header(self):
     header = EvernoteMgr.set_header()
     self.assertTrue('DOCTYPE en-note SYSTEM "http://xml.evernote.'
                     'com/pub/enml2.dtd' in header)