def test_meth_edit_cor_id(self):
     res = NotesApplication('fortune')
     res.create('fortune talks less')
     res.edit(0, 'hey now edit me')
     self.assertEqual(res.note_name, ['hey now edit me'])
 def test_meth_edit_wrng_id(self):
     res = NotesApplication('fortune')
     res.create('hey edit me')
     self.assertFalse(res.edit(0, 'hey edit me'), 'Please enter correct Note ID.')
 def test_meth_edit_id_0(self):
     res = NotesApplication('fortune')
     res.create('I\'ll make it through Andela')
     res.create('it has been written')
     res.edit(0, 'nothing go fit edit am')
     self.assertEqual(res.note_name[0], 'nothing go fit edit am')
 def test_meth_edit(self):
     res = NotesApplication('fortune')
     res.create('He\'s so good to me')
     res.create('I mean the Lord God Almighty')
     res.edit(1, 'yes and that\'s so true')
     self.assertNotEqual(res.note_name[0], 'yes and that\'s so true')
 def test_meth_edit_id_1(self):
     res = NotesApplication('fortune')
     res.create('fortune is my name')
     res.create('call me iyke too')
     res.edit(1, 'hey now brown cow')
     self.assertEqual(res.note_name[1], 'hey now brown cow')