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)
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)
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
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