Esempio n. 1
0
 def test_set_note_attribute(self):
     data = {}
     attr = EvernoteMgr.set_note_attribute(data)
     self.assertTrue(type(attr) is bool)
     data = {'link': 'http://localhost'}
     attr = EvernoteMgr.set_note_attribute(data)
     self.assertTrue(type(attr) is not bool)
Esempio n. 2
0
 def test_set_note_attribute(self):
     data = {}
     attr = EvernoteMgr.set_note_attribute(data)
     self.assertTrue(type(attr) is bool)
     data = {'link': 'http://localhost'}
     attr = EvernoteMgr.set_note_attribute(data)
     self.assertTrue(type(attr) is not bool)
Esempio n. 3
0
 def _attributes(note, data):
     """
     attribute of the note
     :param note: note object
     :param data:
     :return:
     """
     # attribute of the note: the link to the website
     note_attribute = EvernoteMgr.set_note_attribute(data)
     if note_attribute:
         note.attributes = note_attribute
     return note
Esempio n. 4
0
 def _attributes(note, data):
     """
     attribute of the note
     :param note: note object
     :param data:
     :return:
     """
     # attribute of the note: the link to the website
     note_attribute = EvernoteMgr.set_note_attribute(data)
     if note_attribute:
         note.attributes = note_attribute
     return note