Example #1
0
 def test_for_delete_2(self):
     test = NotesApplication('test')
     res = (test.delete(0))
     appOutput = "No note created\n"
     with capture(res, 0) as output:
         self.assertEqual(appOutput, output, msg="delete() method is supposed to warn user that the note list is empty")
Example #2
0
 def test_for_delete_note(self):
     test = NotesApplication('test')
     test.create('emeka is a boy')
     lenght = len(self.note_name)
     res = (test.delete(0))
     self.assertEqual(res,lenght)