def updateNote(id): if db.isAuthor(id, getUser()): db.updateNote(id, request.forms.get('time'), request.forms.get('text')) return {'ack': 1} else: return {'ack': 0, 'msg': 'You do not have permission update this note'}
def test_updateNote(self): db.updateNote(20, 'hello', 'world') assert True
def test_updateNote(self): db.updateNote(20, "hello", "world") assert True