Exemplo n.º 1
0
 def test_get_note_3(self):
     note = NotesApplication("author")
     test_get = note.get(3)
     self.assertEqual(note.get, "note4", msg = "Success: Note retrieved!")
Exemplo n.º 2
0
 def test_get_note_4(self):
     note = NotesApplication("author")
     test_get = note.get(-200)
     self.assertEqual(note.get, "note4", msg = "Oops: Index out of range")
Exemplo n.º 3
0
 def test_get_note_1(self):
     note = NotesApplication("author")
     test_get = note.get("")
     self.assertEqual(note.get, 0, msg = "Oops: No index passed")